[darcs-users] Regular Expression libraries and linker errors
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
>> 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
> 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...
More information about the darcs-users