[PATCH] Speed-up character range regexes by up to 2x
Paolo Bonzini
paolo.bonzini@polimi.it
Mon Jan 12 14:15:00 GMT 2004
>>>>>+#ifdef RE_ENABLE_I18N
>>>>> int icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE));
>>>>>+#else
>>>>>+ int icase = (bufp->syntax & RE_ICASE);
>>>>>+#endif
>>>>>
>>>>>
>It may be that the correct patch is simply to use:
>
> int icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE));
>
>with no surrounding #ifdef. If so, fine.
>
>
I might be missing something overly obvious, but I see 4 lines added by
your patch exactly around the line you suggest, not just the #else branch.
Paolo
More information about the Libc-alpha
mailing list