[PATCH 0/2] speedup getline/getdelim/fgets_unlocked

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Nov 19 15:52:40 UTC 2014


On 18 June 2012 17:45, Ed W <lists at wildgooses.com> wrote:
> On 18/06/2012 16:28, Bernhard Reutner-Fischer wrote:
>>
>> On 6 October 2011 15:40, Bernhard Reutner-Fischer<rep.dot.nop at gmail.com>
>> wrote:
>>>
>>> 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.
>>
>> Anyone? :)
>>
>> cheers,
>>
>
> I remain *interested*, but I'm tied up with a bunch of deadlines and not a
> proper build environment to test under... For reference it was killing me
> with regards to modprobe, but I suspect it would have an impact on other
> shell tools such as sed/awk, so it's definitely worth pushing (sorry, just
> realised this is the uclibc list, the effect originally hit me upstream in
> busybox)
>
> Can someone else ack that the changes have benefit?

Anyone interested? :)
>
> Thanks
>
> Ed W


More information about the uClibc mailing list