Files
craft-libs/crates/psd/src
dotCooCoo 127b7dd43f craft-psd: the long letter run test counts name reads instead of timing
a_name_of_one_long_letter_run_is_scored_in_linear_time passed only when
guess() scored each 64 KiB name within 5 s. A test-only counter now
records each character Name::new and the position checks of score()
read. For each of the three names, the test guesses a quarter of the
name and then all of it, and checks that the whole name takes at most
five times the reads of the quarter. With position() counting the
letters after each character by a scan, the one-letter name takes
402,841,600 reads for the quarter and 6,443,204,608 for all of it, and
the test fails.
2026-11-27 18:10:09 -08:00
..