You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue that I discovered is that when I run gdal_translate() multiple times in the loop, I see that about half of the time is spent in gdal_setinstallation() method. Despite the fact that I explicitly call gdal_setinstallation() on the beginning of my script.
I think that the problem may be caused by the following code, when gdal_installation() is called no matter if gdalUtils_gdalPath variable was set or not (line 539 of gdal_setInstallation.R):
This way we will not spend time recalculating and resetting gdalUtils_gdalPath when we have it already set. It should save us almost 50% of processing time!
The text was updated successfully, but these errors were encountered:
The issue that I discovered is that when I run gdal_translate() multiple times in the loop, I see that about half of the time is spent in gdal_setinstallation() method. Despite the fact that I explicitly call gdal_setinstallation() on the beginning of my script.
I think that the problem may be caused by the following code, when gdal_installation() is called no matter if gdalUtils_gdalPath variable was set or not (line 539 of gdal_setInstallation.R):
I believe, calculation of gdal_installation_out should go into the first brackets like follows:
This way we will not spend time recalculating and resetting gdalUtils_gdalPath when we have it already set. It should save us almost 50% of processing time!
The text was updated successfully, but these errors were encountered: