The UUID, primary greys, width, height and tile-data for level 1 (and maybe also level 2?) for a Pyramid needs fast access in many Pyramids when mapping Tiles at some levels. With the MappedByteBuffer this introduces disk cache invalidation and potentially thrashing on HDD-systems.
Caching the primary data on-heap would take up about 100 bytes per Pyramid: 50 bytes for the data, 50 more for OO-overhead.
The UUID, primary greys, width, height and tile-data for level 1 (and maybe also level 2?) for a Pyramid needs fast access in many Pyramids when mapping Tiles at some levels. With the
MappedByteBuffer
this introduces disk cache invalidation and potentially thrashing on HDD-systems.Caching the primary data on-heap would take up about 100 bytes per Pyramid: 50 bytes for the data, 50 more for OO-overhead.