Cool tool!
One thing caught my eye:
|
println!("{}", rizzy.handle_line(&line.unwrap())); |
If you are processing a stream without newlines that is going to eat all the RAM. It would be wise to do a few KB at a time in a buffer.
https://github.com/uutils/coreutils/blob/master/src/uu/wc/src/count_fast.rs#L31 has the boilerplate tuned for Linux system calls.
Cool tool!
One thing caught my eye:
rizzy/src/main.rs
Line 67 in c98251b
If you are processing a stream without newlines that is going to eat all the RAM. It would be wise to do a few KB at a time in a buffer.
https://github.com/uutils/coreutils/blob/master/src/uu/wc/src/count_fast.rs#L31 has the boilerplate tuned for Linux system calls.