[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Python and Speed



Ian Mallett <geometrian@xxxxxxxxx> wrote:
>  Are there any plans to improve Python's speed to 
> at least the level of C languages?

This isn't really the best forum for asking such a question. I would recommend asking on the general Python mailing list / newsgroup ("comp.lang.python" on http://www.python.org/community/lists/).

I think I speak for all Python developers when I say that we'd love for the language to run faster. And of course the large body of core CPython developers are aware of this. I've personally attended a sprint in Iceland during which we spent a week solely focused on speeding up the CPython interpreter.

There's just not much that can be done with the current CPython implementation to make it faster.

Thus it falls to you as a developer to choose your implementation strategy wisely:

1. pick sensible libraries that handle large amounts of processing for you (whether that be numeric or graphic)
2. where there is no existing library, you may need to code speed-critical parts of your application using C, or the more programmer-friendly Pyrex (er, Cython these days I believe :)


     Richard