Files
craft-libs/crates/math/src
keithcsqueensu f4917bc47e craft-math: the control-word check stays linear over a run of letters
ends_with_control_word walked back over the whole trailing run of
letters for every letter written, so a long run took quadratic time:
200,000 letters took about 10 s in a release build, and 400,000 did not
finish in 3 minutes in a test build. The output position after the last
plain letter is now remembered; while the output still ends there its
trailing letters are plain text and are not scanned again.

Review finding on #1162 (ends_with_control_word).
2026-11-20 01:22:46 +00:00
..