Files
LLeMbas-TTY/env-bootstrap
Simonas Kazlauskas 4e8a7d0d86 ringlog: make printing to stderr faster
I was trying to debug an issue I'm seeing with wezterm and figured I
would try to use the terminal for my day-to-day with trace logds enabled
while I try to figure it out.

Unfortunately it turned out to be disruptive enough to make the terminal
almost unusable. I narrowed at least *that* part down to the fact that
printing out each log message would result in about screenful worth of
`write(2)` syscalls, many of them printing just one space character each
(padding? debug structure identation?)

Although it would be ideal to use a line-based buffered writer here,
pre-formatting the log string to a String before printing seemed like a
straightforward quick solution and it works amazingly well!
2026-01-08 12:35:44 +00:00
..
2025-06-30 07:45:15 +01:00