-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
It would be good if the terminal types could have built-in buffering, preferably line-buffering. Currently, every write call in a formatter directly causes a syscall, slowing terminal output down. Additionally, there's no need to flush after every color code on ANSI terminals, it would be more efficient to output them together with the actual text.
In slog-rs/slog#125 you can see that it causes a more than 2x speedup to simply put a LineBuffer around the terminal. On Windows, this would also need to include a flush before the terminal properties are changed to output in a different color.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels