[PR #10426] Prefer FMT_COMPILE for string formatting in VtRenderer #28052

Open
opened 2026-01-31 09:25:59 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10426

State: closed
Merged: Yes


Kill WriteFormattedString and replace it with fmt::format_to to avoid expensive string operations in VtRenderer.

This saves ~8% of the CPU time.

Inspired by https://github.com/microsoft/terminal/issues/10362#issuecomment-856625365

Co-authored-by: Leonard Hecker lhecker@microsoft.com

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10426 **State:** closed **Merged:** Yes --- Kill `WriteFormattedString` and replace it with `fmt::format_to` to avoid expensive string operations in VtRenderer. This saves ~8% of the CPU time. Inspired by https://github.com/microsoft/terminal/issues/10362#issuecomment-856625365 Co-authored-by: Leonard Hecker <lhecker@microsoft.com>
claunia added the pull-request label 2026-01-31 09:25:59 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28052