[Bug c++/12850] [3.4 Regression] memory consumption for heavy template instantiations tripled since 3.3

Jan Hubicka hubicka@ucw.cz
Wed Jan 14 11:37:00 GMT 2004


> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 08:43 -------
> It goes up to abot >480MB on powerpc-apple-darwin, then drops to around 250MB.

I can get about 30MB at -O0, for unit-at-a-time we however still needs
250MB, this is the size of all templates instantiated together.  I don't
think we can reduce this for 3.4 further and it is no longer regression,
in the future we may make trees more compact.  This testcase has also
interesting runtime properties, Mark may want to look at the
for_each_template_param_r problem.

Honza
> 
> -- 
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12850



More information about the Gcc-bugs mailing list