microsoft / microsoft/terminal
`WriteCharsLegacy` performance issues caused by `NotifyConsoleUpdateSimpleEvent`
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
# Description of the new feature/enhancement
I know this is a issue a long time ago, but haven't got the chance to talk about it.
This is typical WPR trace of `OpenConsole` with output-heavy programs.

# Proposed technical implementation details (optional)
Perhaps throttling the event?
Contributor guide
Research direction
Start with the `WriteCharsLegacy` entry point and its calls to `NotifyConsoleUpdateSimpleEvent`, using the attached WPR trace as the performance baseline. Determine where the event cost occurs for output-heavy programs and establish a reproducible comparison before proposing a throttling approach. Done means a measured improvement with behavior preserved, but no test or source file is identified in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100