This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Reduce GC overhead of the C++ lexer buffer
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Guenther <rguenther at suse dot de>
- Date: Mon, 19 Jun 2006 22:37:57 +0200
- Subject: Re: [PATCH] Reduce GC overhead of the C++ lexer buffer
- References: <Pine.LNX.firstname.lastname@example.org>
On Monday 19 June 2006 14:05, Richard Guenther wrote:
> At the moment we have
> cp/parser.c:292 (cp_lexer_new_main) 0: 0.0% 82369152:33.3% 0: 0.0%
> 15784576:37.2% 7
> which is due to the fact that the initial lexer buffer size is no where
> near a power-of-two value and we keep gc-reallocating the vector, doubling
> its size.
> With the following patch, this overhead is removed nearly completely
> cp/parser.c:266 (cp_lexer_new_main) 0: 0.0%
> 36: 0.0% 0: 0.0% 4: 0.0% 1
I wonder if this will result in significantly larger PCHs... ?