[FFmpeg-devel] [PATCH] Make postprocess.c's replaceTable fall into .rodata
Sat Jan 5 19:30:09 CET 2008
On Sat, Jan 05, 2008 at 01:58:37PM +0100, Diego 'Flameeyes' Petten? wrote:
> The attached patch changes the way replaceTable is defined, so that
> instead of being an array of pointers (which falls into
> .data.local.rel.ro with PIC), it's a table of character array. This time
> the size is not a power of two, but I think the compiler would probably
> bad it by itself.
> I'm afraid this time it actually does use more memory than the old
> version, but it's probably negligible on 64-bit arches.
the strings used for replacements are not in their shorest form ...
x1hdeblock == h1 for example
this would change the distribution of the lengths and maybe make your
proposed change not need more mem
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel