Skip to content

Migrate trie implementation to patricia trie to increase possible subscription count on a single box #1400

Closed
@jabberfest

Description

@jabberfest

In:
https://github.com/zeromq/libzmq/blob/master/src/trie.cpp
https://github.com/zeromq/libzmq/blob/master/src/mtrie.cpp

a trie is used. When subscriptions for the pub/sub protocol near several million the memory footprint on a single box becomes fairly large. The instance of ZeroMQ can become memory bound if you have a large amount of subscriptions, and not IO bound. I'm open to discussion and thoughts! nanomsg appears to have this done already.

See for additional reasoning:
http://250bpm.com/blog:19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions