[PR #18291] Replace MarkKind::None with MarkKind::Output #31500

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

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

State: closed
Merged: No


During the development of #18290 I noticed that we caused a performance
regression due to the storage of marks in attributes. Since the default
attribute is None and any output sets it to Output, this meant that
every row of output would at least temporarily allocate heap memory.
This caused cls on a huge history to take twice as long as before.

Validation Steps Performed

  • How do I test this?
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18291 **State:** closed **Merged:** No --- During the development of #18290 I noticed that we caused a performance regression due to the storage of marks in attributes. Since the default attribute is None and any output sets it to Output, this meant that every row of output would at least temporarily allocate heap memory. This caused cls on a huge history to take twice as long as before. ## Validation Steps Performed * How do I test this? ❓
claunia added the pull-request label 2026-01-31 09:47:40 +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#31500