bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: speed up getndelim2


From: Jim Meyering
Subject: Re: speed up getndelim2
Date: Wed, 30 Apr 2008 15:42:51 +0200

Eric Blake <address@hidden> wrote:
> Wow!  Check out the speedup with this patch, comparing an -O2 /bin/cut
> pre-patch against an unoptimized -g cut post-patch, and that's even with
> running /bin/cut second so it benefits from any file system caching effects.
...
> And all I did was make getndelim2 smarter to process data in blocks
> instead of bytes, by exploiting freadptr and memchr2, and cut is roughly
> 40% faster.

Wow, indeed.
Nice work!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]