[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] unistr/u8-strchr: speed up searching for ASCII characters
From: |
Simon Josefsson |
Subject: |
Re: [PATCH] unistr/u8-strchr: speed up searching for ASCII characters |
Date: |
Wed, 07 Jul 2010 18:07:56 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Pádraig Brady <address@hidden> writes:
> + /* The following is equivalent to:
> + return memmem (s, strlen(s), c, csize);
> + but faster for long S with matching UC near the start,
> + and also memmem is sometimes buggy and inefficient. */
> switch (u8_uctomb_aux (c, uc, 6))
Don't we have an efficient memmem in gnulib that this code could use?
/Simon