sharksforarms / deku

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

Fix pad_* attributes in no_std #478

Closed wcampbell0x2a closed 2 months ago

wcampbell0x2a commented 2 months ago

Sorry, didn't find this until updating my adsb crate

github-actions[bot] commented 2 months ago

Benchmark for d4c0e67

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | count | 5.0±0.01µs | 5.0±0.05µs | 0.00% | | deku_read_bits | **1159.2±19.49ns** | 1188.8±48.33ns | **+2.55%** | | deku_read_byte | **5.2±0.08ns** | 5.9±0.11ns | **+13.46%** | | deku_read_enum | **4.4±0.06ns** | 4.7±0.05ns | **+6.82%** | | deku_read_vec | **42.2±0.28ns** | 42.5±0.22ns | **+0.71%** | | deku_write_bits | 192.5±4.05ns | 194.7±6.26ns | +1.14% | | deku_write_byte | 24.9±0.35ns | 24.9±0.66ns | 0.00% | | deku_write_enum | 23.0±0.45ns | 23.0±0.40ns | 0.00% | | deku_write_vec | 416.9±13.66ns | 413.3±3.64ns | -0.86% | | read_all | 5.6±0.02µs | **3.7±0.05µs** | **-33.93%** | | read_all_bytes | 5.6±0.02µs | **3.8±0.07µs** | **-32.14%** |