Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure GDAL_CACHEMAX when running optimize-rasters #337

Closed
tomalrussell opened this issue May 31, 2024 · 2 comments · Fixed by #338
Closed

Configure GDAL_CACHEMAX when running optimize-rasters #337

tomalrussell opened this issue May 31, 2024 · 2 comments · Fixed by #338

Comments

@tomalrussell
Copy link
Contributor

I've been tweaking this line and bumping CACHEMAX to several GB seems to give a nice performance improvement when I have just a few large rasters to process and RAM to spare:

CACHEMAX = 1024 * 1024 * 512 # 512 MB

Is there a preferred way to make this configurable? Could be a check for existing GDAL_CACHEMAX environment variable and fall back to 512MB as a safe enough default?

@dionhaefner
Copy link
Collaborator

@tomalrussell How's this? #338

@tomalrussell
Copy link
Contributor Author

Looks good to me, thanks @dionhaefner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants