improving python performance by extension module (64bit)

geremy condra debatem1 at gmail.com
Fri Jun 25 20:08:27 EDT 2010


On Fri, Jun 25, 2010 at 6:18 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 25/06/2010 22:25, Stephen Hansen wrote:
>>
>> On Fri, Jun 25, 2010 at 1:51 PM, Mark
>> Lawrence<breamoreboy at yahoo.co.uk>wrote:
>>
>>> On 25/06/2010 16:34, Stephen Hansen wrote:
>>>
>>>  Python's slow, sure. But its in practice fast enough for an extremely
>>>>
>>>> broad
>>>> range of activities.
>>>>
>>>>
>>> What?
>>>
>>
>> What, what?
>>
>> --S
>>
>>
>
> Python is *NOT* slow, you can develop software in it much faster than you
> can in some other languages.  The run time speed has also been shown to be
> faster in some circumstance than C because of the Bots who're smart enough
> to optimise it up to the hilt.

CPython is written in C. By definition it cannot go faster than C, and extensive
practice bears this out- the stdlib is full of modules either written
or rewritten in
C for speed, not to mention numpy, sage, etc. I'd also like to see the example
you cite- I have written Haskell that runs faster than C, and Forth that runs
faster than C, and I consider myself reasonably proficient at Python and have
*never* seen Python code that executes faster than comparably optimized C.

Geremy Condra



More information about the Python-list mailing list