mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 03:52:45 +01:00
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).