mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-12 21:23:02 +00:00
read_plane decoded every segment separately, even when a file pointed every tile at the same bytes. Each lossless JPEG decode rebuilds its Huffman tables and each result is retained until assembly, so one small range repeated across many tiles multiplied header work and memory by the tile count. Decode each distinct (offset, length, geometry) once and scatter the shared samples into every tile that names it.