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

Martin Sustrik sustrik at 250bpm.com
Thu Jan 19 03:25:48 CET 2012


Hi Andrew,

> 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.

> on the other hand, i don't get this use case.
> can anyone share why we need this complexity of subscription stuff?
> someone mentioned having tens of thousands of "topics" -- what is this
> about?

The thing is that exact matching allows for more efficient filtering 
algorithm (hash table).

Martin



More information about the zeromq-dev mailing list