mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
The per-sample normalization in fill_samples called a helper that tested range.is_finite() and range <= 0.0 for every sample, which made 24 MP monochrome U16 develops ~30% slower than main. A single range > 0.0 test gives the same results (NaN, zero, negative and infinite ranges all end at 0) and restores main's speed; output hashes are unchanged.