Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reader: Remove bits_read for end #508

Merged
merged 2 commits into from
Dec 1, 2024
Merged

Conversation

wcampbell0x2a
Copy link
Collaborator

  • Remove bits_read from end, as it's not really read, and we
    need to count the read when the leftover is read later.
  • Fix missing bits_read increase on previous read
  • Improve test coverage of reader by adding tests, and add more asserts

* Remove bits_read from end, as it's not really read, and we
  need to count the read when the leftover is read later.
* Fix missing bits_read increase on previous read
* Improve test coverage of reader by adding tests, and add more asserts
Copy link

github-actions bot commented Dec 1, 2024

Benchmark for 37a0316

Click to view benchmark
Test Base PR %
count_from_u8_specialize 96.8±1.08ns 90.1±0.96ns -6.92%
count_no_specialize 2.4±0.03µs 2.4±0.05µs 0.00%
count_specialize 98.5±1.31ns 99.4±0.72ns +0.91%
deku_read_bits 1236.2±15.58ns 1198.3±23.41ns -3.07%
deku_read_byte 5.1±0.10ns 4.5±0.11ns -11.76%
deku_read_enum 4.7±0.05ns 3.8±0.08ns -19.15%
deku_read_vec 31.1±1.13ns 30.8±0.46ns -0.96%
deku_write_bits 194.5±5.31ns 197.4±8.74ns +1.49%
deku_write_byte 26.0±0.34ns 26.1±0.50ns +0.38%
deku_write_enum 23.9±0.47ns 23.9±0.37ns 0.00%
deku_write_vec 463.6±5.42ns 434.1±8.22ns -6.36%
read_all 4.9±0.03µs 4.2±0.11µs -14.29%
read_all_bytes 5.0±0.05µs 4.1±0.04µs -18.00%

@wcampbell0x2a wcampbell0x2a merged commit d31f0ab into master Dec 1, 2024
11 of 15 checks passed
@wcampbell0x2a wcampbell0x2a deleted the remove-bits-read-for-end branch December 1, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants