aboutsummaryrefslogtreecommitdiff
path: root/src/internal/stdio_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-10 23:39:32 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-10 23:39:32 -0400
commit2b964b010e5d37cb2ff712d57a14095188d689e3 (patch)
treef45adf47882f54a7609420164e4a3b15dbeac55d /src/internal/stdio_impl.h
parenttrivial optimization to printf: avoid wasted call frame (diff)
downloadgrovel-2b964b010e5d37cb2ff712d57a14095188d689e3.tar.gz
grovel-2b964b010e5d37cb2ff712d57a14095188d689e3.tar.xz
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.
Diffstat (limited to 'src/internal/stdio_impl.h')
0 files changed, 0 insertions, 0 deletions