[PR #17550] 15x faster reflow in debug builds #31265

Open
opened 2026-01-31 09:46:10 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17550

State: closed
Merged: Yes


STL iterators have a significant overhead. This improves performance
of GetLastNonSpaceColumn by >100x (it's too large to measure),
and reflow by ~15x in debug builds. This makes text reflow in debug
builds today ~10x faster than it used to be in release builds before
the large rewrites in #15701 and #13626.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17550 **State:** closed **Merged:** Yes --- STL iterators have a significant overhead. This improves performance of `GetLastNonSpaceColumn` by >100x (it's too large to measure), and reflow by ~15x in debug builds. This makes text reflow in debug builds today ~10x faster than it used to be in release builds before the large rewrites in #15701 and #13626.
claunia added the pull-request label 2026-01-31 09:46:10 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31265