New sprintf which is 7 times faster then the libc one
(released under GPL)
Implementation of sprintf_irc, tuned for IRC sprintf use. Should be more
then 5 times faster.
Format sprintf sprintf_irc Speed up factor
"12345678901234567890" 3.385 us 0.859 us 3.94
"%s", buffer (20 chars) 3.780 us 0.547 us 6.91
"%c%c%c", c1, c2, c3 3.640 us 0.376 us 9.68
"%lu", (time_t)t 5.851 us 0.842 us 6.95
Less important:
"%d", 31337 4.487 us 0.852 us 5.27
"%u.%u.%u.%u", 9.069 us 2.431 us 3.73
Questions and comments about this page should go to the maintainer:
Carlo Wood
(Run @ IRC).