TerminalCore/TerminalControl dispatch five billion cursor update coroutines when printing long file #7334

Open
opened 2026-01-31 01:01:19 +00:00 by claunia · 0 comments
Owner

Originally created by @DHowett-MSFT on GitHub (Apr 8, 2020).

When we're printing a long file, we call winrt::fire_and_forget TermControl::_TerminalCursorPositionChanged() an absolutely mad number of times. Each one of them unconditionally dispatches and waits to tell the TSF input control it's ready to dispatch a cursor update.

We can probably do this only once per dispatcher cycle.

Originally created by @DHowett-MSFT on GitHub (Apr 8, 2020). When we're printing a long file, we call `winrt::fire_and_forget TermControl::_TerminalCursorPositionChanged()` an absolutely mad number of times. Each one of them unconditionally dispatches and waits to tell the TSF input control it's ready to dispatch a cursor update. We can probably do this only once per dispatcher cycle.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7334