From: Rich Felker Date: Sat, 11 Aug 2012 03:39:32 +0000 (-0400) Subject: minor but worthwhile optimization in printf: avoid expensive strspn X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=2b964b010e5d37cb2ff712d57a14095188d689e3;hp=2b964b010e5d37cb2ff712d57a14095188d689e3 minor but worthwhile optimization in printf: avoid expensive strspn the strspn call was made for every format specifier and end-of-string, even though the expected return value was 1-2 for normal usage. replace with simple loop. ---