Re: [Patch] performance enhancement for simple_strtoul

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Wed Dec 20 2000 - 19:09:35 EST


Steve Grubb wrote:
> It seems gcc creates much better code with the variables set to register
> types.

Curious. GCC should be generating the same code regardless; ah well.

Is strtoul actually used in the kernel other than for the occasional
(rare) write to /proc/sys and parsing boot options?

> But this is the kernel and there are people that would reject my patch
> purely on the basis that it adds precious bytes to the kernel.

Perhaps I am mistaken but I'd expect it to be called what, ten times at
boot time, and a couple of times when X loads the MTRRs?

Sounds like the neatest trick would be reducing bytes used here...

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:27 EST