[zeromq-dev] Make zeromq load faster?

David Wolfe dwolfe at fifthsally.com
Thu Oct 14 17:52:43 CEST 2010


Hi, all. I'm looking at zeromq and absolutely loving its simplicity. I'm
considering using it in an embedded app because it solves so many
problems I would otherwise have to code solutions for by hand.  It's an
almost total win.

There's one problem: though zeromq is 'small' in comparison to any other
library aimed at enterprise messaging, it's not exactly tiny from an
embedded systems perspective. I've cross-compiled and stripped it for my
ARM target and it still weighs in at 301K.

Startup time is a huge concern for the component I'm working on. The
mess I'm replacing has the reputation of "loading too slow", and some of
my colleagues have decided that it needs to be rewritten in ANSI C to
make it load faster. I don't know how they arrived at this conclusion,
but it means zeromq's dependency on C++ will be getting a lot of
scrutiny.

I might be allowed to just try it and see how it works. But if the
component still has a startup delay that's deemed "too long", I'm
wondering what I can do.  Are there any optional components of zeromq
that I can compile out? (I'm only using ZMQ_PUB/SUB and ZMQ_PUSH/PULL
sockets.)

I have a feeling that any squashing I can do to zeromq won't put a dent
in this, if it's really the culprit:

-rwxr-xr-x 1 root root 1.1M 2007-05-09 14:27 libstdc++.so.6.0.8*

I don't suppose there's any way to get rid of the dependency on
libstdc++? ;-}



More information about the zeromq-dev mailing list