[zeromq-dev] Fwd: Exact matching on subscription topics

John D. Mitchell jdmitchell at gmail.com
Thu Jan 19 03:34:30 CET 2012


On Jan 18, 2012, at 18:25 , Martin Sustrik wrote:
[...]
>> as for regex, be careful. regex performance is NOT wire speed EXCEPT
>> for the case of substring and in many case, multiple substrings
>> (the unix fgrep case). plus, relatively few folk are adept with complex
>> regex expressions.
> 
> Ack.

FYI, check out the Thompson-DFA based regex vs. the potentially exponential slowdown of e.g. backtracking-based regex engines. E.g.:
http://swtch.com/~rsc/regexp/regexp1.html

Hope this helps,
John




More information about the zeromq-dev mailing list