binrw
binrw copied to clipboard
Add "how to optimize parsers" documentation
Spinning off from #129, making users more aware of this is a good practice.
Most notable things to be included:
- how buffering can help perf
- how seeks can affect binrw's perf characteristics
- how
Vec<u8>
is specialized - how per-field error handling can add overhead in pathological cases
Also to be considered:
- perf debugging tool recommendations (strace, flamegraph)
(If anyone else has additions as to parts of the performance characteristics found to be unintuitive please comment them below)