Andrew Gallant 6770e23454 Fixes a performance bug in bytes::Regex::replace.
This was using `Vec::extend` to accumulate bytes in a buffer, but this
compiles down to less efficient code than, say, `Vec::extend_from_slice`.
However, that method is newly available as of Rust 1.6, so we do a small
backport to regain performance.

This bug was noticed by @llogiq here: https://github.com/TeXitoi/benchmarksgame-rs/issues/31
In particular, this increases the performance of bytes::Regex two-fold on
that benchmark.
2016-04-22 19:30:16 -04:00
..
2016-02-15 15:42:04 -05:00
2016-02-15 15:42:04 -05:00