You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d02663
Browse filesBrowse the repository at this point in the historyBrowse files
write_line() issued two separate write_all() calls per output line
(line content, then the terminator byte), each going through the
dynamically-dispatched Box<dyn Write> from open_output_file(). Merge
them into a single write via a reused scratch buffer.
Also match the input BufReader's capacity to the existing 128KB
output buffer (previously the 8KB std default), for consistency.
Measured on a 20x-repeated /usr/share/dict/words (~80MB, pinned to
one CPU core to reduce noise): -w 1 dropped from 429.7ms to 395.5ms
(~8%), -w 512 from 578.9ms to 497.8ms (~14%).
0 commit comments