pcre, bifs, drivers and ports
Thu Aug 3 15:48:26 CEST 2006
Bjorn Gustavsson wrote:
> So if you could be sure that a given regexp would be converted
> to a FA, your heuristic would work.
i guess backreferences would have to be dropped.
otoh, even if time IS exponential in the length of the string to be matched,
limiting the length of the string would bound the time.
btw, running the "killer regexp" on my 1.6 Mb test string only took 66 ms.
not bad, only twice as expensive as length/1 :>
does length/1 block the emu? and what about e.g. md5/1?
More information about the erlang-questions