[FFmpeg-devel] [PATCH v2 3/3] swscale/utils: lazily allocate XYZ tables on CONFIG_SMALL
Michael Niedermayer
michael at niedermayer.cc
Wed Dec 25 02:09:36 EET 2024
On Mon, Dec 23, 2024 at 01:26:35PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
>
> This has the downside of requiring these tables to be recomputed on every
> init, but saves ~270 kB of static data.
>
> Signed-off-by: Niklas Haas <git at haasn.dev>
> ---
> libswscale/utils.c | 26 +++++++++++++++++++++-----
> 1 file changed, 21 insertions(+), 5 deletions(-)
have you looked at doc/tablegen.txt ?
In theory, if tables are hardcoded in a object file
they can be cheaply removed from memory and just parts reloaded by the kernel
on access. Also they can be shared for free between processes and take no
time to generate (though time to load)
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241225/513adcfb/attachment.sig>
More information about the ffmpeg-devel
mailing list