[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Irregex bugfix and update to 0.9.1
From: |
Felix |
Subject: |
Re: [Chicken-hackers] [PATCH] Irregex bugfix and update to 0.9.1 |
Date: |
Tue, 27 Nov 2012 21:26:37 +0100 (CET) |
From: Peter Bex <address@hidden>
Subject: [Chicken-hackers] [PATCH] Irregex bugfix and update to 0.9.1
Date: Tue, 27 Nov 2012 20:46:22 +0100
> Hi all,
>
> Prompted by some discussion and a bogus patch by me, Alex came up with
> a very simple but effective fix for ticket #686. We've made a new
> bugfix release for irregex, 0.9.1, so here's a patch to bring Chicken
> up-to-date with upstream.
>
> The fix is pretty simple; if you know the regex is a "searcher" (one
> that starts with 'bos, ie the beginning of a string), don't loop in
> the fold procedure because it can't possibly match anymore. This should
> also improve performance for such regex matches that can be short-cut
> like this.
Signed off and pushed.
cheers,
felix