[Performance] Fast path for RenderData::IsCursorDoubleWidth #14283

Open
opened 2026-01-31 04:06:10 +00:00 by claunia · 0 comments
Owner

Originally created by @skyline75489 on GitHub (Jun 21, 2021).

This is a sister issue of #10393.

Currently an unreasonable amount of CPU is wasted in checking IsCursorDoubleWidth in the buffer, due to the expensive construction of TextBufferCellIterator. I think it's fair to find a fast path for people who don't use width characters at all.

image

Originally created by @skyline75489 on GitHub (Jun 21, 2021). This is a sister issue of #10393. Currently an unreasonable amount of CPU is wasted in checking `IsCursorDoubleWidth` in the buffer, due to the expensive construction of `TextBufferCellIterator`. I think it's fair to find a fast path for people who don't use width characters at all. ![image](https://user-images.githubusercontent.com/4710575/122703646-a757d780-d284-11eb-9f1a-689951091275.png)
claunia added the Help WantedProduct-ConhostIssue-TaskArea-Performance labels 2026-01-31 04:06:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14283