mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
b1c2d7ac7c
Do no longer iterate over each byte and instead rely on the Buffer trait to find the newline for us. Iterate over the ranges to specify slices of the line which need to be printed out. This rewrite gives a signifcant performance increase: Old: 1.32s mahkoh: 0.90s New: 0.20s GNU: 0.15s |
||
---|---|---|
.. | ||
cut.rs | ||
ranges.rs |