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

2018-04-25 Thread James Almer
On 4/25/2018 4:35 PM, Michael Niedermayer wrote: > 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

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

2018-04-25 Thread Michael Niedermayer
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-b

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

2018-04-23 Thread James Almer
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 --- libavcodec/cbs_mpeg2.c | 6 +++--- 1 file changed, 3 inser