microsoft/Terminal

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

Open

#10.470 aperta il 21 giu 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C++ (3212 fork)batch import
Area-PerformanceHelp WantedIssue-TaskProduct-Conhost

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

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

Guida contributor