Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small optimization of COOKED_READ_DATA::_erase #15879

Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Aug 25, 2023

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 ✅

@lhecker lhecker added the Area-CookedRead The cmd.exe COOKED_READ handling label Aug 25, 2023
@lhecker lhecker added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 28, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit c443615 into main Aug 28, 2023
17 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the dev/lhecker/8000-cmdline-improvement branch August 28, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CookedRead The cmd.exe COOKED_READ handling AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants