On Mon, Oct 13, 2008 at 14:06, Daniel Kersten <[EMAIL PROTECTED]> wrote: > > Has anyone used cython (http://cython.org/)? If yes, what were your > experiences with it like? >
Cython is the fork of pyrex isn't it? I've used pyrex to wrap C libraries and found it reasonably painless for most basic cases, though these days I'd probably use ctypes for wrapping libraries, mainly 'cos it cuts out a compilation step and simplifies things (sic). Your mileage with cython might vary depending on your goal. One gotcha I encountered is code which crosses between c and python frequently, you get a performance penalty for the function call overhead. Generally passing all the data the c code needs, letting it do its thing, and getting the final result in one go performs the best. Again, for speed I'd look at psyco and numpy first, then worry about rewriting code. mick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
