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

use bitstream-io for #4 #24

Merged
merged 5 commits into from
Jun 9, 2021
Merged

Conversation

scottlamb
Copy link
Collaborator

No description provided.

As a quick sanity check when switching from bitreader to bitstream-io.
This will make a bitreader->bitstream-io transition easier.

I also got rid of the infrequently-used read_{ue,se} methods in favor of
read_{ue,se}_named. The latter are newer and provide better diagnostics.

Because this is a breaking change, I bumped the version number and
added a change log.
Why?
*   performance improvement to RbspBitReader as shown below (although
    this is likely a small percentage of any useful program's time)
*   switch from a less popular crate to a more popular crate
*   be more consistent with adts-reader
*   step toward the lazy RbspBufDecoder interface I described in #4

```
parse_nal/sps           time:   [511.27 ns 512.15 ns 513.01 ns]
                        change: [-17.150% -17.002% -16.853%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) high mild
  1 (1.00%) high severe
```
@dholroyd dholroyd mentioned this pull request Jun 9, 2021
@dholroyd
Copy link
Owner

dholroyd commented Jun 9, 2021

Sorry for the mid-air collision there! 😅
I'll have a go at resolving the conflicts

@dholroyd dholroyd merged commit a9ca4a4 into dholroyd:master Jun 9, 2021
@scottlamb scottlamb deleted the pr-bitstream branch June 23, 2021 22:36
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