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

Try out performance optimizations for TiTiler for CloudFerro S3 Sentinel-2 L2A JP2 #83

Open
1 task
j08lue opened this issue Sep 25, 2024 · 3 comments
Open
1 task
Assignees

Comments

@j08lue
Copy link
Collaborator

j08lue commented Sep 25, 2024

Tiling the JP2 Sentinel-2 L2A files from CloudFerro S3 works [EDIT with limitations]. Perhaps performance can be improved with some GDAL tuning, as indicated here:

Maybe this can avoid some of the OpenJPEG crashes we have seen?

Acceptance criteria

  • Tested whether there are performance gains with the mentioned GDAL tuning
@MathewNWSH
Copy link

check:
GDAL_DISABLE_READDIR_ON_OPEN=YES

and try to set chunk size to the one data is stored in.

CPL_VSIL_CURL_CHUNK_SIZE=98304
GDAL_INGESTED_BYTES_AT_OPEN=16384

the biggest optimization comes from using commercial JPEG2000 drivers like kakadu.

@lnicola
Copy link

lnicola commented Nov 26, 2024

GDAL_DISABLE_READDIR_ON_OPEN=YES

You want EMPTY_DIR. If you set it to TRUE, GDAL will stat each file individually instead of enumerating the files in the parent directory in one go. EMPTY_DIR makes it tell the driver there are no other files.

@j08lue
Copy link
Collaborator Author

j08lue commented Nov 26, 2024

Looks like there was a performance degradation in OpenJPEG, too, that may soon get addressed:

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

No branches or pull requests

4 participants