[FFmpeg-devel] [PATCH] Optionally hardcode aes tables

Michael Niedermayer michaelni
Thu Jan 10 02:58:03 CET 2008


On Tue, Jan 08, 2008 at 11:12:41PM +0100, Diego 'Flameeyes' Petten? wrote:
> 
> Again similarly to what Aurelien did for crc, this patch optionally
> replaces the run-time defined tables for AES encryption and decryption
> with precalculated ones.
> 
> With this we avoid COW for the tables, which aren't really small, at the
> cost of increasing on-disk size of the file:
> 
> flame at enterprise mytmpfs % codiff original.so hardcoded.so
> aes.c:
>   init_multbl2 | -151
>   av_aes_init  | -403
>  2 functions changed, 554 bytes removed
> flame at enterprise mytmpfs % ls -l original.so hardcoded.so
> -rwxr-xr-x 1 flame flame 154007  8 gen 23:00 hardcoded.so
> -rwxr-xr-x 1 flame flame 146716  8 gen 22:59 original.so
> 

> Optionally hardcode AES tables.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080110/11c21580/attachment.pgp>



More information about the ffmpeg-devel mailing list