microsoft/Terminal

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

Ouverte

#10 470 ouverte le 21 juin 2021

 (0 commentaire) (0 réaction) (0 personne assignée)C++ (9 275 forks)batch import
Area-PerformanceHelp WantedIssue-TaskProduct-Conhost

Métriques du dépôt

Stars
 (103 173 étoiles)
Métriques de merge PR
 (Merge moyen 27j 19h) (24 PRs mergées en 30 j)

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

Guide contributeur