[PR #10621] [MERGED] Optimize hot path in textBufferCellIterator #28148

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10621
Author: @skyline75489
Created: 7/12/2021
Status: Merged
Merged: 7/27/2021
Merged by: @undefined

Base: mainHead: chesterliu/dev/tbci-hotpath


📝 Commits (10+)

📊 Changes

3 files changed (+114 additions, -10 deletions)

View changed files

📝 .github/actions/spelling/expect/expect.txt (+1 -0)
📝 src/buffer/out/OutputCellView.hpp (+16 -1)
📝 src/buffer/out/textBufferCellIterator.cpp (+97 -9)

📄 Description

Summary of the Pull Request

References

The += operator is an extremely hot path under heavily output load. This PR aims to optimize its speed.

PR Checklist

  • Supports What about 'over all windows' as Task Manager? (#10563)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10621 **Author:** [@skyline75489](https://github.com/skyline75489) **Created:** 7/12/2021 **Status:** ✅ Merged **Merged:** 7/27/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `chesterliu/dev/tbci-hotpath` --- ### 📝 Commits (10+) - [`3f67edf`](https://github.com/microsoft/terminal/commit/3f67edf876f727fa331416bfb6118c39b62dce77) Optimize hot path in textBufferCellIterator - [`8aadccb`](https://github.com/microsoft/terminal/commit/8aadccbb8ad88ba8fc874c6627a4432d0c699b65) Merge branch 'main' into chesterliu/dev/tbci-hotpath - [`7feea77`](https://github.com/microsoft/terminal/commit/7feea77fe005cea3f66916690ba4ada05711fe92) Update - [`737fe3c`](https://github.com/microsoft/terminal/commit/737fe3cdaffbb54b4de33ede08b30550a670a461) Restore functionailty - [`f04c94e`](https://github.com/microsoft/terminal/commit/f04c94ea8bb83649210a7886b9f378b81d431b0f) Format - [`53cfb27`](https://github.com/microsoft/terminal/commit/53cfb274df2c9933d3aadd0d397cdbbc64228c5b) review - [`7ed2a76`](https://github.com/microsoft/terminal/commit/7ed2a76730649f07c1e4dd928ab7a9a296ad9e3f) U got me, bot - [`050dc7e`](https://github.com/microsoft/terminal/commit/050dc7e8a968215779b5a9911ee1ce8e82c0a10e) Merge branch 'main' into chesterliu/dev/tbci-hotpath - [`8753573`](https://github.com/microsoft/terminal/commit/87535731fa0af3bb3b7d73677bcf6314a784ed19) Minor code cleanup - [`2a12085`](https://github.com/microsoft/terminal/commit/2a120859c0ded914a4d81a117d712889fd2f5e1a) Fix spelling ### 📊 Changes **3 files changed** (+114 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/expect/expect.txt` (+1 -0) 📝 `src/buffer/out/OutputCellView.hpp` (+16 -1) 📝 `src/buffer/out/textBufferCellIterator.cpp` (+97 -9) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References The `+=` operator is an extremely hot path under heavily output load. This PR aims to optimize its speed. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [ ] Supports #10563 * [ ] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:26:38 +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#28148