Re: [RFC] lib/vsprintf.c: Even faster decimal conversion

From: Tejun Heo
Date: Tue Mar 10 2015 - 08:42:28 EST


On Tue, Mar 10, 2015 at 11:47:47AM +0100, Rasmus Villemoes wrote:
> I can't explain why num_to_str apparently becomes slightly slower (the
> patch essentially didn't touch it), but the put_dec_ helpers in any case
> make up for that.

Unrelated code changes affecting performance in seemingly random way
isn't too uncommon. A lot of it arises from cacheline behaviors. The
effect is sometimes surprisingly big.

Generally looks pretty good to me. Andrew, can you please pick this
patch up?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at