Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A small optimization of COOKED_READ_DATA::_erase (#15879)
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 ✅
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters