DescriptionOptimize ParseRbsp method in H264 bitstream parser.
After profiling, sakal@ found that this method was taking very long,
and causing the bitstream parsing to take up to 1ms per frame. The
culprit proved to be rtc::Buffer::AppendData, which was called for
every byte and subsequently calls memcpy.
BUG=webrtc:7293
Review-Url: https://codereview.webrtc.org/2728093002
Cr-Commit-Position: refs/heads/master@{#17051}
Committed: https://chromium.googlesource.com/external/webrtc/+/156e3afa7f945069b206c3e252ea3609869bfad5
Patch Set 1 #Patch Set 2 : Fix memory leak #
Total comments: 1
Patch Set 3 : return vector to avoid copy #
Total comments: 3
Patch Set 4 : Remove unused includes #
Messages
Total messages: 24 (18 generated)
|