Matt Prazak wrote:
At http://tools.openoffice.org/performance/index.html, there is a
mention about unused code removal as a way of improving OO.org.  Out of
curiosity, I managed to generate a list of about 85,000 symbols from
the program/ directory that have definitions but no corresponding UNDEF
entries in the shared libraries (this is excluding "external" code like
icu).

(I just realized that I need to include .bin files, too, so the 85,000
can probably be reduced somewhat)

Some more reasons why the number is that high but (some of) the symbols in question might nevertheless denote used code:


- If you are doing this on Linux, and are including weak definitions, you will get lots of symbols that are (by necessity) exported weakly from multiple objects, like the _ZTI* symbols needed for proper GCC exception handling.

- The default linking behaviour on Unix is that if some non-static C/C++ function is only used internally within an object (shared object or executable), it is nevertheless exported from that object. Some parts of OOo use this default behaviour.

-Stephan

The main problem with this, however, is that this is really a big
number of symbols to go through.  Are there any guidelines or
suggestions for how to find a starting point?  If this is workable and
I find something probably worth removing, is it best to simply nominate
that function for removal or is it better to submit a patch that strips
it out?


Matt

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to