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

Re: [pygame] Linux binaries



i have been doing C++ for a while now and was wondering if there was a python
wrapper for it, if so can i use and compile in visual studio??


 
On Wed, Nov 5, 2008 at 7:53 AM, Peter Gebauer <peter.gebauer@xxxxxxxxxxxxxxxxxxxxx> wrote:
Hi guys!

I agree, just wanted to add that many iterations over trivial code benefits
(speed-wise) tremendously from being written in C and accessed in Python, or
at least that is my experience. :)
Guess you have to weigh it against the added complexity of having to compile
C code, maybe for mulitple platforms, etc.

On 2008-11-05 (Wed) 13:57, Greg Ewing wrote:
> Patrick Mullen wrote:
>> On Tue, Nov 4, 2008 at 12:55 AM, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
>>
>>> The only way to improve speed is to re-code the cpu-intensive
>>> parts using something more efficent, such as C or Pyrex.
>>
>> Or, of course, write better python code if possible in those parts.
>
> Yes, certainly -- finding a better algorithm is always
> the best form of optimization!
>
> --
> Greg
>