[PR #10471] Defer _run substr operation in StateMachine::ProcessString #28071

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

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

State: closed
Merged: Yes


Do not eagerly create run by substring to reduce the unnecessary overhead.

Switching from .substr to offset/length tracking saves us 7% CPU time.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10471 **State:** closed **Merged:** Yes --- Do not eagerly create run by substring to reduce the unnecessary overhead. Switching from `.substr` to offset/length tracking saves us 7% CPU time.
claunia added the pull-request label 2026-01-31 09:26:08 +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#28071