consolidate regexes

Smylers Smylers at stripey.com
Tue Feb 25 13:29:42 GMT 2014


Dirk Koopman writes:

> ... some incoming string needs to be compared to many (certainly 10s,
> probably 100s but not 1000s) regexes. ... speed is more important than
> it might otherwise be.

Aaron Crane mentions a couple of modules which might help (in explaining
his module which does something similar to what you want, but requires
the 100s of things you're comparing against are fixed strings)
http://aaroncrane.co.uk/2008/05/text_match_fastalternatives/

Smylers
-- 
http://twitter.com/Smylers2


More information about the london.pm mailing list