microsoft/Terminal

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

Aberta

#10.470 aberto em 21 de jun. de 2021

 (0 comentário) (0 reação) (0 responsável)C++ (9.275 forks)batch import
Area-PerformanceHelp WantedIssue-TaskProduct-Conhost

Métricas do repositório

Stars
 (103.173 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador