[darcs-users] Regular Expression libraries and linker errors

Jason Dagit dagit at codersbase.com
Wed Oct 7 01:05:48 UTC 2009

On Tue, Oct 6, 2009 at 3:00 PM, Max Battcher <me at worldmaker.net> wrote:

> Ben Franksen wrote:
>> Sure, file is attached. It's not much, though! Just played around with a
>> few
>> regexes from the latest default boringfile and a random path from my darcs
>> repo. It should be easy to extend, though. Note I am not explicitly
>> compiling the regexes, so one could argue that in fact this tests speed of
>> the regex-compiler plus speed of the regex-engine. This can also easily be
>> fixed.
> Does Haskell provide a mechanism to cache compiled RegExes across program
> runs, ie to save them into a shared library or dfa instantiation? (I have
> used such tools in the .NET and Java environments...) I would think that
> boring files change rarely enough that I am curious if this would be
> something worth investigating.

The time to compile them is very short, possibly quicker than the time to
deserialize them from storage.  To directly answer your question, I don't
know but I would guess that the underlying implementation lacks this
feature.  The Haskell library is just a wrapper around a C library.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20091006/f80a7f6b/attachment-0001.htm>

More information about the darcs-users mailing list