[Cython] pubsub module and cython
Stefan Behnel
stefan_ml at behnel.de
Mon Oct 13 19:21:49 CEST 2008
Hi,
Prashant Saxena wrote:
> I would prefer to do something with publisher module. The example that was included with this topic is for to show the problem only.
> I am using publisher in couple of files where I am about to change the code to get the maximum gain using cython(cdef, loops and other stuff).
> Now I have to find a solution for this problem first, later I'll jump for conversion.
>
> Could you please suggest me some hacks that would make this thing work If I would do some changes in pubsub modules or anything?
As Robert suggested: try to find the parts of your code that are performance
critical and use Cython for them. And find the parts that require Python code
and implement them in plain Python. Cython allows you to mix both pretty
freely, so this will allow you to fine-tune the point of language switch as
you see fit.
Stefan
More information about the Cython-dev
mailing list