This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile-time performance
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Cc: Robert Dewar <dewar at gnat dot com>, aoliva at redhat dot com,chip dot cuntz at earthling dot net, davem at redhat dot com, gcc at gcc dot gnu dot org,jh at suse dot cz
- Date: Sun, 19 May 2002 10:17:45 -0700
- Subject: Re: gcc compile-time performance
- References: <20020519111849.D908FF28CC@nile.gnat.com> <20020519113946.GA1476@daikokuya.demon.co.uk>
On Sun, May 19, 2002 at 12:39:46PM +0100, Neil Booth wrote:
> Robert Dewar wrote:-
>
> > I disagree, unless you have some perverse definiteion of "properly".
>
> Well, a call to the mb functions or iconv is considerably more
> expensive than
>
> c = *buffer->cur++;
We shouldn't be doing mbchar calls in the fast path, though. I
thought we were going to pre-convert to UTF8 a line at a time, then
keep the existing lexer loop with some augmentations. Even the
conversion can be bypassed when we know the input text doesn't use
multibyte characters.
zw