Files
craft-libs/crates/control-protocol
dotCooCoo 1f52a13a8e craft-control-protocol: write reply lines through a buffer
serve_lines wrote replies with writeln!, which hands the writer every
string, number and separator of the JSON value as a separate write. On
an unbuffered TcpStream that is one system call per piece. Replies and
the closing rejection now go through a 64 KiB BufWriter and are flushed
once per line, so a small reply is one write and a large one is a few
buffer-sized writes without a second whole copy in memory.
2026-11-20 10:43:52 -08:00
..