We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbbbdbb commit 5494075Copy full SHA for 5494075
benches/bench.rs
@@ -23,10 +23,7 @@ fn bench_encode(c: &mut Criterion) {
23
c.bench_function("encode_1000_u64", |b| {
24
b.iter(|| {
25
let mut out = BytesMut::new();
26
- fastrlp::encode_list(
27
- (0..1000u64).into_iter().collect::<Vec<_>>().as_slice(),
28
- &mut out,
29
- );
+ fastrlp::encode_list((0..1000u64).collect::<Vec<_>>().as_slice(), &mut out);
30
})
31
});
32
}
@@ -49,7 +46,7 @@ fn bench_decode(c: &mut Criterion) {
49
46
50
47
51
48
c.bench_function("decode_1000_u64", |b| {
52
- let input = (0..1000u64).into_iter().collect::<Vec<_>>();
+ let input = (0..1000u64).collect::<Vec<_>>();
53
let mut data = BytesMut::new();
54
fastrlp::encode_list(input.as_slice(), &mut data);
55
0 commit comments