itoa'd you so?

Dave Smith dave at thesmithfam.org
Wed Sep 19 22:29:18 MDT 2007


Dave Smith wrote:
> Okay, here's one that is MUCH faster which I did after reading 
> Weston's (better) code. It's still not quite as fast as the sprintf() 
> version, but much closer (about 25% slower instead of twice as slow).

So now I'm curious. What is sprintf() doing that is so much faster. I 
mean, it has to parse a format string in addition to doing all the itoa 
magic. Anyone care to shed some light? Is my algorithm flawed by design 
(like most of my code)?

Off to read the sprintf() code...

--Dave



More information about the PLUG mailing list