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

Diego 'Flameeyes' Pettenò flameeyes
Tue Jan 8 23:12:41 CET 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavutil-hardcode-aestables.patch
Type: text/x-patch
Size: 41510 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080108/78df3084/attachment.bin>
-------------- next part --------------


-- 
Diego "Flameeyes" Petten?
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080108/78df3084/attachment.pgp>



More information about the ffmpeg-devel mailing list