Skip to content
New issue

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

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

Already on GitHub? # to your account

Performance issue when loading individual tiles #347

Open
thejohnhoffer opened this issue Jan 26, 2023 · 0 comments
Open

Performance issue when loading individual tiles #347

thejohnhoffer opened this issue Jan 26, 2023 · 0 comments

Comments

@thejohnhoffer
Copy link

thejohnhoffer commented Jan 26, 2023

What I observe

For each loaded tile, this line in _readRaster copies every image pixel from the tile buffer one-by-one. Each of our tiles (1024px by 1024px) therefore call this function over a million times when loaded. For our case of direct rendering of hundreds of tiles, This produces a 4x slowdown compared to a direct copy from tile buffer to typed array.

What I expect

Only one buffer to array conversion should be needed to read one tile that byte-for-byte matches an IFD.

Proposed solution

PR #348

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

No branches or pull requests

1 participant