[FFmpeg-devel] [PATCH v2 12/17] avformat/flvenc: Use array instead of linked list for index

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jan 1 16:46:26 EET 2020


Am Mi., 1. Jan. 2020 um 14:28 Uhr schrieb Andreas Rheinhardt
<andreas.rheinhardt at gmail.com>:
>
> Using a linked list had very much overhead (the pointer to the next
> entry increased the size of the index entry struct from 16 to 24 bytes,
> not to mention the overhead of having separate allocations), so it is
> better to (re)allocate a continuous array for the index.
> av_fast_realloc_array() is used for this purpose, in order not to
> reallocate the array for each entry.

Does this change performance?

Carl Eugen


More information about the ffmpeg-devel mailing list