[tremor] [patch] constify a few things
Chris Gilbert
chris at dokein.co.uk
Mon Sep 23 01:53:44 PDT 2002
Hi,
I was just looking over a few tables, and noticed that some of them aren't
const'd. attached is a patch to do so. There's probably no performance
gain, however it moves the tables into the read-only part of produced files,
from the read-write part.
On NetBSD the diff gives the following change in size:
postdiff:
gerry: {26} size mdct.o
text data bss dec hex filename
14848 16 0 14864 3a10 mdct.o
gerry: {27} size floor0.o
text data bss dec hex filename
2716 1720 0 4436 1154 floor0.o
prediff:
gerry: {28} size mdct.o
text data bss dec hex filename
6648 8216 0 14864 3a10 mdct.o
gerry: {29} size floor0.o
text data bss dec hex filename
2448 1988 0 4436 1154 floor0.o
o it moves 8468 bytes into the text segment from data.
Possibly more useful for embedded devices where you want as little data to
be read-write.
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdct_const.diff
Type: application/octet-stream
Size: 5044 bytes
Desc: mdct_const.diff
Url : http://lists.xiph.org/pipermail/tremor/attachments/20020923/16d48080/mdct_const.obj
More information about the Tremor
mailing list