[FFmpeg-devel] [PATCH 03/10] lavc/hevcdec: allocate local_ctx as array of structs rather than pointers

Anton Khirnov anton at khirnov.net
Fri May 24 12:03:55 EEST 2024


Quoting Andreas Rheinhardt (2024-04-17 11:29:18)
> Anton Khirnov:
> > It is more efficient and easier to manage.
> > ---
> 
> Allocating structures used by slice contexts jointly has the potential
> downside of false sharing if the structures are not sufficiently
> aligned/padded.

What do you suggest? Align first member to cacheline size?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list