chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Irregex bugfix and update to 0.9.1


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Irregex bugfix and update to 0.9.1
Date: Tue, 27 Nov 2012 20:46:22 +0100
User-agent: Mutt/1.4.2.3i

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.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: 0001-Irregex-Ensure-bos-is-matched-only-once-in-irregex-f.patch
Description: Text document


reply via email to

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