[FFmpeg-devel] [PATCH] avcodec/cbs_mpeg2: use memcpy when assembling fragments

Michael Niedermayer michael at niedermayer.cc
Wed Apr 25 22:35:34 EEST 2018


On Mon, Apr 23, 2018 at 11:39:54PM -0300, James Almer wrote:
> before:
> 419022 decicycles in assemble_fragment,    2047 runs,      1 skips
> 
> after:
> 104621 decicycles in assemble_fragment,    2045 runs,      3 skips
> 
> Benched with a 2 minutes long 720x480 DVD mpeg2 sample.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavcodec/cbs_mpeg2.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

LGTM
thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180425/f01488d2/attachment.sig>


More information about the ffmpeg-devel mailing list