[PR #15879] A small optimization of COOKED_READ_DATA::_erase #30766

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

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

State: closed
Merged: Yes


This is a small optimization that makes COOKED_READ_DATA erase short
runs of text more quickly. It's not really necessary to do this as
this code is not a hotpath, but I felt like it's neater this way.
It requires no heap allocations even for long runs of text.

Validation Steps Performed

  • Deleting text anywhere in a prompt erases it
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15879 **State:** closed **Merged:** Yes --- This is a small optimization that makes COOKED_READ_DATA erase short runs of text more quickly. It's not really necessary to do this as this code is not a hotpath, but I felt like it's neater this way. It requires no heap allocations even for long runs of text. ## Validation Steps Performed * Deleting text anywhere in a prompt erases it ✅
claunia added the pull-request label 2026-01-31 09:42:49 +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#30766