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

COG reader should have an adaptive strategy to read large headers #281

Open
aaime opened this issue Nov 4, 2022 · 2 comments
Open

COG reader should have an adaptive strategy to read large headers #281

aaime opened this issue Nov 4, 2022 · 2 comments

Comments

@aaime
Copy link
Member

aaime commented Nov 4, 2022

The default read size (16kb?) works for small COG files, but large ones with a massive amount of tiles need too many reads in order to fully load the header. Maybe the reader should have an adaptive strategy starting small and growing the size of the read (up to a given maximum) to quickly read large headers. I don't know, something like doubling the page size of the read at each attempt, until a maximum of N megabytes is reached.

@samodadela
Copy link

@aaime About the header. Is it cached? What if the layer is tiled - will each tile request load the header again?

@aaime
Copy link
Member Author

aaime commented Jun 22, 2023

It's cached. Fully. That's the issue with large headers, they sit in memory all the time.

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

2 participants