Closed jqnatividad closed 3 months ago
I don't think any of these are performance tweaks? The one that might be is the use of copy_from_slice
, but that isn't in any kind performance sensitive code. It's just the Clone
impl for Writer
. The rest all just look like code improvements.
Did you run the benchmarks multiple times? It's also not easy to see the actual comparison with your presentation here. Try using cargo-benchcmp
.
Thanks for the feedback!
I did run the benchmarks several times, but not in a rigorous way. Will use cargo-benchcmp
and report back...
Hi @BurntSushi , thanks once again for this essential crate!
The proposed changes make for a non-trivial performance improvement.
after changes: