This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Improving gcc scalability wrt _extra_ large C files
- From: Mike Stump <mrs at apple dot com>
- To: Jacques THOMAS <jthomas at cs dot purdue dot edu>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 13 Mar 2003 13:36:19 -0800
- Subject: Re: Improving gcc scalability wrt _extra_ large C files
On Thursday, March 13, 2003, at 12:49 PM, Jacques THOMAS wrote:
As I said a few days ago, gcc is awfully slow when it comes to
compiling some very large generated C files (several hundred thousands
of different types and variables in the global lexical scope).
Gaby might be working in this area?
Check and make sure that you don't slow down the common case any. The
hash things can have high enough overhead, that you can wind up
speeding up seriously large things, and 99.9% of the other code, is 30%
slower... This would be a bad trade off. If you find the hash stuff
is killing things, try smaller initial hash sizes (2-4 elements), and
if that doesn't work, try using a linked list, or a varray for < 20 (or
whatever the cutover point it).