[Pyrex] pyrex or not pyrex
Andreas Kostyrka
andreas at kostyrka.org
Tue Jul 3 20:17:23 UTC 2007
Pyrex bindings are "pure" C bindings.
The only differences are:
- Pythonlike syntax.
- support for some autmatic code generation.
Basically, if you decide that you need 100% speed you can declare all Python/C API calls in Pyrex and write your inner loop with these. Hint: it's usually not worth the bother.
So I'd stick with Pyrex till you have very strong indications that you want C. Plus Pyrex is a magnitude easier than the C Python API,
Andreas
-- Ursprüngl. Mitteil. --
Betreff: [Pyrex] pyrex or not pyrex
Von: william at opensource4you.com
Datum: 03.07.2007 19:58
Hi all,
I'm currently building a bunch of python code around libevent
(http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws/.git;a=summary).
My goals is t get the best out of the fabulous libevent library.
As you see (http://william-os4y.livejournal.com/), my main concerns are
performance, performance and again performance.
In that context I would like to better use the new libevent functionality,
methods, ...
My concern is how to make them available in python and keep the best
performance.
Should I continue with pyrex and improve the pyevent
(http://code.google.com/p/pyevent/) developped by dugsong ?
Does pyrex has big impact on the overall performance ?
Does some of you have comparisons between pure c-bindings integration
versus pyrex ?
Before investing time in it, I would got your recommendations ?
Many thanks.
William
_______________________________________________
Pyrex mailing list
Pyrex at lists.copyleft.no
http://lists.copyleft.no/mailman/listinfo/pyrex
More information about the Pyrex
mailing list