Revert "Performance tweaks (#4340)" (#4350)

* Revert "Performance tweaks (#4340)"

This reverts commit 55cee5742f.

* Revert Rc change
This commit is contained in:
sakridge
2019-05-20 17:48:42 -07:00
committed by GitHub
parent 90fb5d074d
commit 7153abd483
4 changed files with 8 additions and 30 deletions

View File

@ -69,7 +69,7 @@ fn bench_consume_buffered(bencher: &mut Bencher) {
let mut packets = vec![];
for batch in batches {
let batch_len = batch.packets.len();
packets.push((Rc::new(batch), vec![0usize; batch_len]));
packets.push((batch, vec![0usize; batch_len]));
}
// This tests the performance of buffering packets.
// If the packet buffers are copied, performance will be poor.