[PR #6923] Skip validations on some text buffer methods #26818

Closed
opened 2026-01-31 09:18:19 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: No


This is a selection of top hitters when running massive outputs by cat. They're assorted checks on pieces of the text buffer to ensure things aren't out of range. Generally speaking, I want to have these still hit in debug mode, just not in release mode. We check and double check and triple check a lot of these parameters (or pull things into bounds with Viewport/rectangle classes) so for the final release perf, we may as well toast a handful of them for the sake of zoom.

Validation Steps Performed

  • Run time cat big.txt. Checked average time before/after, WPR traces
    before/after.

PR Checklist

  • Closes perf itch
  • I work here
  • Manual test
  • Documentation irrelevant.
  • Schema irrelevant.
  • Am core contributor.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/6923 **State:** closed **Merged:** No --- This is a selection of top hitters when running massive outputs by `cat`. They're assorted checks on pieces of the text buffer to ensure things aren't out of range. Generally speaking, I want to have these still hit in debug mode, just not in release mode. We check and double check and triple check a lot of these parameters (or pull things into bounds with Viewport/rectangle classes) so for the final release perf, we may as well toast a handful of them for the sake of zoom. ## Validation Steps Performed - Run `time cat big.txt`. Checked average time before/after, WPR traces before/after. ## PR Checklist * [x] Closes perf itch * [x] I work here * [x] Manual test * [x] Documentation irrelevant. * [x] Schema irrelevant. * [x] Am core contributor.
claunia added the pull-request label 2026-01-31 09:18:19 +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#26818