Re: [FFmpeg-devel] [PATCH 1/3] cbs_mpeg2: Improve performance of writing slices

2018-11-11 Thread Mark Thompson
On 04/11/18 04:48, Andreas Rheinhardt wrote: > Instead of using a combination of bitreader and -writer for copying data, > one can byte-align the (obsolete and removed) bitreader to improve > performance. > One can even use memcpy in the normal case. > This improved the time needed for writing

[FFmpeg-devel] [PATCH 1/3] cbs_mpeg2: Improve performance of writing slices

2018-11-03 Thread Andreas Rheinhardt
Instead of using a combination of bitreader and -writer for copying data, one can byte-align the (obsolete and removed) bitreader to improve performance. One can even use memcpy in the normal case. This improved the time needed for writing the slicedata from 33618 to 2370 decicycles when tested on