This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Minor reload cleanup/speedup


> On Wed, Feb 04, 2004 at 05:02:26PM +0100, Jan Hubicka wrote:
> > Actually the code is faster just because ISDIGIT is implemented in
> > locale's way ....
> 
> No, it absolutely is not.  That's why we use ISDIGIT from libiberty's
> safe-ctype.h instead of isdigit from the system's ctype.h.
Hmm, so then it must be faster just because switch statement expansion
does better job than sequence of jumps :)
All what I observed is large number of oprofile samples near ISDIGIT
test that went away after putting switch in place (and the amount of
samples for whole function decreased)

Honza
> 
> 
> r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]