[zeromq-dev] pyczmq import overhead

Michel Pelletier pelletier.michel at gmail.com
Fri Jan 17 20:19:36 CET 2014


On Fri, Jan 17, 2014 at 8:06 AM, MinRK <benjaminrk at gmail.com> wrote:

>
>
> If you use cffi.verify, you can also do the compilation at build time, as recommended
> by cffi<http://cffi.readthedocs.org/en/latest/index.html?highlight=get_extension#distributing-modules-using-cffi>.
>  PyZMQ does this<https://github.com/zeromq/pyzmq/blob/f58bb80b3b7583fb45824d0a1037128f7f29d44a/setup.py#L1003> for
> its CFFI backend on PyPy, and it seems to work reasonably well.
>
>
>
Yeah I use verify() in the pybladeRF wrapper and it works very well, I just
haven't bothered to convert pyczmq yet.  Converting to verify will also
allow removing the hardwired constants in the pyczmq and relying instead of
cffi.verify's ability to resolve defines and enums at compile time.  I'll
take a stab at it tonight.

-Michel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140117/f50f564c/attachment.htm>


More information about the zeromq-dev mailing list