microsoft/Terminal

[Performance] Fast path for `RenderData::IsCursorDoubleWidth`

Open

#10,470 opened on Jun 21, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (3,212 forks)batch import
Area-PerformanceHelp WantedIssue-TaskProduct-Conhost

Repository metrics

Stars
 (35,764 stars)
PR merge metrics
 (Avg merge 27d 19h) (24 merged PRs in 30d)

Description

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

Contributor guide