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

Faster H264Reader #506

Merged
merged 2 commits into from
Oct 8, 2023
Merged

Faster H264Reader #506

merged 2 commits into from
Oct 8, 2023

Conversation

anatawa12
Copy link
Contributor

Fixes #505

The following is benchmark with same code in #505

$ cargo run --example nal-parser -- ~/test.h264          
    Finished dev [unoptimized + debuginfo] target(s) in 0.20s
     Running `target/debug/examples/nal-parser /Users/anatawa12/test.h264`
Input file size: 6926816
Parsing NAL took: 486.273834ms
Total NALs: 1001
$ cargo run --release --example nal-parser -- ~/test.h264
    Finished release [optimized] target(s) in 0.20s
     Running `target/release/examples/nal-parser /Users/anatawa12/test.h264`
Input file size: 6926816
Parsing NAL took: 45.588834ms
Total NALs: 1001

@rainliu rainliu merged commit 1f2cef4 into webrtc-rs:master Oct 8, 2023
3 of 5 checks passed
@anatawa12 anatawa12 deleted the faster-h264 branch October 8, 2023 22:41
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.

H264Reader is extreamly slow
2 participants