This is the mail archive of the
mailing list for the GCC project.
Re: inline-limit: some experimental feedback
- To: <Richard dot Kreckel at uni-mainz dot de>
- Subject: Re: inline-limit: some experimental feedback
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Tue, 21 Aug 2001 14:19:39 +0200 (CEST)
- cc: <gcc at gcc dot gnu dot org>
On Tue, 21 Aug 2001, Richard B. Kreckel wrote:
> Okay, I just learned that Gerald has set the default
> PARAM_MAX_INLINE_INSNS from 10000 down to 600 in order to remedy
> compile-time performance regressions.
Minor correction: I have *increased* the limit from 100 to 600 based on
tests, never decreased it:
Neither the tree-based inliner per se, nor the switch to libstdc++-v3, nor
the decrease to 100 had been performance-tested in a suitable way; this is
why GCC 3.0 and 3.0.1 appear as bad as they do compile-time and run-time
performance-wise for many C++ sources.
However, tweaking this parameter is a band-aid in any case: Even if we
tune for maximum compile-time performance or maximum run-time performance,
the result with GCC 3.0 and 3.0.1 is *still* worse than GCC 2.95.x in both
terms (for my projects at least).
The proper fix really is to improve the inliner.
PS: Increasing the value to 2000 would tripple compile-time for my
projects, for example, and also increase binary size quite a bit.
Gerald "Jerry" email@example.com http://www.dbai.tuwien.ac.at/~pfeifer/