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

A particular combination of TIFF formatting options causes slowness #24

Open
ddohler opened this issue Mar 29, 2018 · 0 comments
Open

Comments

@ddohler
Copy link
Owner

ddohler commented Mar 29, 2018

Tiffs compressed using LZW can take several orders of magnitude longer to decode than those encoded with Deflate. Using native code, there is little difference. This is probably an Emscripten limitation or artifact.
This actually appears to be a very specific combination of factors that causes a huge spike in time to thumbnail a tiff. The known factors so far are:

  • Tiled TIFF layout (switching to striped resolves the problem)
  • Large size (there is a huge spike in time required between a file with 59% of the original file size and 60% of the original size)
  • Possibly also Byte pixel values and multiple bands, but this is untested.
@ddohler ddohler changed the title LZW Decoding is very slow A particular combination of TIFF storage causes slowness Apr 2, 2018
@ddohler ddohler changed the title A particular combination of TIFF storage causes slowness A particular combination of TIFF formatting options causes slowness Apr 2, 2018
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

1 participant