sharksforarms / deku

Declarative binary reading and writing: bit-level, symmetric, serialization/deserialization
Apache License 2.0
1.05k stars 54 forks source link

Add reader.into_inner #426

Closed wcampbell0x2a closed 2 months ago

github-actions[bot] commented 2 months ago

Benchmark for 124c1b2

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1231.8±23.88ns | **1201.3±26.12ns** | **-2.48%** | | deku_read_byte | 20.4±0.29ns | 20.3±0.36ns | -0.49% | | deku_read_enum | 9.4±0.15ns | **9.2±0.19ns** | **-2.13%** | | deku_read_vec | 59.7±1.56ns | **58.8±0.82ns** | **-1.51%** | | deku_write_bits | 108.7±2.30ns | 108.3±2.47ns | -0.37% | | deku_write_byte | 122.8±5.38ns | 121.8±3.18ns | -0.81% | | deku_write_enum | 88.0±6.00ns | 84.3±4.23ns | -4.20% | | deku_write_vec | **3.0±0.08µs** | 3.2±0.07µs | **+6.67%** |