buf-ref-reader 0.2.0

Faster, growable buffering reader for when there's little to no need to modify data, nor to keep it alive past next read.
Documentation

buf-ref-reader

Faster, growable buffering reader.

Use this crate to get faster reads in situations when all you need is immutable &[u8]s, the contents of which rarely need to outlive a single loop cycle.

See rustdoc for examples and to read more about how this crate works, its applicability and limitations.

Currently this crate only works with rust-nightly.

Acknowledgement

The idea for this crate came from experiments with mawk, namely after applying first Futamura projection to one of awk scripts, which in turn was done to study mawk's exceptionally good performance.

See source code for FINgets() to learn how mawk buffers its input.

License

Apache License 2.0