After investigating a lot in pubsub module, I have written my own custom 
dispatcher(50 lines :-)) and it's working like a charm with cython.

cython rocks!!!

Thanks

Prashant



----- Original Message ----
From: Stefan Behnel <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, 13 October, 2008 10:51:49 PM
Subject: Re: [Cython] pubsub module and cython

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
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev



      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to