Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimise writeString for Windows with vtEnabled #772

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bios-Marcel
Copy link
Contributor

@Bios-Marcel Bios-Marcel commented Jan 18, 2025

Instead of doing 3 WriteConsole calls, we do a single call that sets the
cursor, sets the style and writes the content. This gives us a
performance boost of up to 3x faster.

@Bios-Marcel Bios-Marcel force-pushed the optimise_windows_vt_write_string branch 3 times, most recently from 793b306 to ddc2e12 Compare January 18, 2025 17:29
Instead of doing 3 `WriteConsole` calls, we do a single call that sets the
cursor, sets the style and writes the content. This gives us a
performance boost of up to 3x faster.
@Bios-Marcel Bios-Marcel force-pushed the optimise_windows_vt_write_string branch from ddc2e12 to dca8a44 Compare January 18, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant