sharksforarms / deku

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

Impl DekuWrite for [T] #416

Closed wcampbell0x2a closed 10 months ago

wcampbell0x2a commented 10 months ago

See #270

github-actions[bot] commented 10 months ago

Benchmark for 8d6744e

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | deku_read_bits | 1266.8±15.23ns | **1198.6±36.37ns** | **-5.38%** | | deku_read_byte | 19.9±0.45ns | 20.0±0.41ns | +0.50% | | deku_read_enum | 9.3±0.18ns | 9.4±0.15ns | +1.08% | | deku_read_vec | 53.3±0.89ns | 53.4±0.77ns | +0.19% | | deku_write_bits | 110.2±4.02ns | 110.0±1.05ns | -0.18% | | deku_write_byte | 126.4±3.09ns | 129.2±4.98ns | +2.22% | | deku_write_enum | 93.1±5.94ns | 94.7±3.79ns | +1.72% | | deku_write_vec | 3.1±0.06µs | 3.1±0.07µs | 0.00% |