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

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to