haskell at list.mightyreason.com
Wed Mar 18 08:23:58 EDT 2009
I have just uploaded the new regex-tdfa-1.1.0 to hackage. This version is a
small performance update to the old regex-tdfa-1.0.0 version.
Previously all text (e.g. ByteString) being search was converted to String and
sent through a single engine.
The new version uses a type class and SPECIALIZE pragmas to avoid converting to
String. This should make adding support for searching other Char containers
easy to do.
The new version includes six specialized engine loops to take advantage of
obvious optimizations of the traversal. The previous version had only a couple
of such engines. The new code paths have been tested for correctness and no
performance degradations have shown up.
More information about the Libraries