Open kljensen opened 3 years ago
For many applications, only the first N characters of the line are relevant and we needn't send more data to the hashing function. I should add a flag for specifying that N and also add a flag for setting a custom buffer size.
N
See also https://dev.to/mineichen/writing-a-better-line-iterator-in-rust-443m
Also see https://crates.io/crates/bytelines
And https://crates.io/crates/linereader
And https://docs.rs/bstr/0.2.14/bstr/
For many applications, only the first
N
characters of the line are relevant and we needn't send more data to the hashing function. I should add a flag for specifying thatN
and also add a flag for setting a custom buffer size.See also https://dev.to/mineichen/writing-a-better-line-iterator-in-rust-443m