[PATCH 0/2] speedup getline/getdelim/fgets_unlocked
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Oct 6 13:40:51 UTC 2011
This is a completely untested variant to hopefully speed-up
fgets_unlocked and it's users by not doing char-IO as was done before.
Since we still rely on fgets for getdelim (instead of using the common
guts of fgets_unlocked with the given delimiter plus surounding realloc
loop) we are still slower as an inlined version, of course.
Please test with your speed-hat on and report back.
TIA,
Bernhard Reutner-Fischer (2):
getdelim: tiny shrinkage
stdio: make getdelim faster
libc/stdio/_stdio.h | 6 +++++
libc/stdio/fgets.c | 36 ++++++++++++++++++++++++-------
libc/stdio/getdelim.c | 57 +++++++++++++++++++++++++++++++++++++++++-------
3 files changed, 82 insertions(+), 17 deletions(-)
--
1.7.6.3
More information about the uClibc
mailing list