aboutsummaryrefslogtreecommitdiffhomepage
path: root/subprojects
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-08-26 22:53:30 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-08-28 10:02:05 -0400
commita4ef474cabc4113c3dca72bf08bc477c452c624c (patch)
tree0252d8156789e55c63dfb0b210d5da52552d766d /subprojects
parent.ssp digest: add image file's own pixel dimensions (diff)
image digest: single read, cache file read & hash
For image digests cache file read & hash, one read per image file Fix issue: images referenced from several objects were read and hashed once per reference. [as an example in the sisu-manual sm_tux.png accounts for 6 of the document's image records (12 across the sample set), each of them a fresh read of the same bytes, and source_pod.d hashes the file again for digests.txt.] Memoise on the full path within safeComputeHashAndSize. static is thread-local in D, so documents processed in parallel each get their own cache and no synchronisation is involved. Files are not expected to change during a run. Output is unchanged: identical .ssp output. (An image that is missing or unreadable now warns once to stdout rather than once per reference). (assisted by Claude-Code)
Diffstat (limited to 'subprojects')
0 files changed, 0 insertions, 0 deletions