geosolutions-it / imageio-ext

Additional plugins and extension for the standard Java ImageIO library
Other
140 stars 81 forks source link

Improve Tiff metadata #8

Open dromagnoli opened 11 years ago

dromagnoli commented 11 years ago

Tiff reader is relatively inefficient since it heavily relies on metadata for doing its work and metadata for bigtiff can be enormous due to the fact that it stores two arrays of long where each element holds the tile offset in the file as well as the tile bytes count.

It would be great to try and:

1 cache these values between multiple successive reads 2 load them as we need them since they are rather big

dromagnoli commented 11 years ago

Pasting previous comment made by Simone:

Done some initial work on trunk. I basically retain Image metadata in the TiffImageReaedr for each tiff page as a softreference to make things faster but still being able to release memory under big stress.

More work should follow as time is available. Anyway, testing needed!