Web lists-archives.com

Re: [MPlayer-dev-eng] [PATCH] codec-cfg: Optimize built-in codecs format.




On Sat, Feb 13, 2016 at 10:00:36PM +0100, Reimar Döffinger wrote:
> Lookup strings via index in an array instead of
> using direct pointers.
> The two main advantages are
> 1) No data relocations that pointers would otherwise cause
> 2) Smaller size on 64 bit systems

Note that if you are interested I have a plan to
use a similar lookup system for e.g. the fourccs.
They use huge arrays that most codecs only use
1 or 2 entries of, so this might reduce binary size
by maybe 100 kB.
It also means that we won't have an issue
with adding more fourccs to a codec for example.
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng