Open dromagnoli opened 11 years ago
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!
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