Re: memmem speedup

2008-01-05 Thread Mike Frysinger
On Saturday 05 January 2008, Eric Blake wrote: > Mike Frysinger gentoo.org> writes: > > on the topic of integrating it elsewhere ... the comment header states > > that this is part of the GNU C library. > > The original, before my hacks, was a straight copy from glibc; so this is > intended to be

Re: memmem speedup

2008-01-05 Thread Eric Blake
Mike Frysinger gentoo.org> writes: > on the topic of integrating it elsewhere ... the comment header states that > this is part of the GNU C library. The original, before my hacks, was a straight copy from glibc; so this is intended to be pushed back to glibc. > if it were part of glibc, it w

Re: memmem speedup

2008-01-05 Thread Mike Frysinger
On Saturday 05 January 2008, Eric Blake wrote: > I've finished my implementation of a Two-Way plus Boyer-Moore hybrid > string search algorithm for the memmmem module. This patch has passed > everything I've thrown at it so far, and it has the nice properties of > avoiding alloca/malloc (hence it

memmem speedup

2008-01-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've finished my implementation of a Two-Way plus Boyer-Moore hybrid string search algorithm for the memmmem module. This patch has passed everything I've thrown at it so far, and it has the nice properties of avoiding alloca/malloc (hence it is asyn

Add man-db to users.txt

2008-01-05 Thread Colin Watson
I haven't rolled a release of man-db with gnulib yet, but since most of the URLs in here seem to be VCS URLs anyway ... diff --git a/users.txt b/users.txt index 196b907..1d449f6 100644 --- a/users.txt +++ b/users.txt @@ -34,6 +34,7 @@ The following packages appear to be using gnulib and gnulib-to

string.h and NULL [was: memmem issues]

2008-01-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 12/21/2007 6:42 AM: | |> + [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], |> + [return !memmem ("a", 1, NULL, 0);])], | | does not define NULL. Better write (void*)0 or "" instead of NULL. I've since fixed thi

Re: test-memmem takes waaay too long

2008-01-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 1/4/2008 4:38 PM: | Eric Blake wrote: |> + * tests/test-memmem.c (main): Use alarm to declare failure if test |> + is taking too long. | | The function alarm() does not exist on mingw. Neither does SIGALRM. Indeed. But s