From: Svein Ove Aas
Subject: Re: newbie needs help improving performace of tokenizer
Date: 
Message-ID: <87psufw9ks.fsf@aeris.brage.info>
Raymond Wiker <·············@fast.no> writes:

>         By following the compiler notes, changing the type of src from
> non-simple array to string and adding declarations, I was able to
> reduce the runtime for doit-2 from 2.77 seconds down to about .26
> seconds. This is on a 2x2GHz PowerMac G5, with SBCL 0.9.1.42.
>
For me, on a pentium-m, also turning the special variables idx and src
into lexicals (storing their values back into the specials at the end
of the function) cut the remaining time by 40%.

That means it takes 0.91 seconds, which is still .2 seconds slower
than gcc with -O2, but beats unoptimized C by .3 seconds.

It will be interesting to see if I can shave off more time, but I
suspect we're getting into insn-scheduling territory.