Python is darn fast (was: How fast is Python)
Simon Burton
simonb at webone.com.au
Sat Aug 23 20:14:07 EDT 2003
On Sun, 24 Aug 2003 00:31:15 +0100, John J. Lee wrote:
> Irmen de Jong <irmen at -NOSPAM-REMOVETHIS-xs4all.nl> writes:
>
>> P at draigBrady.com wrote:
>>
...
>> but Python+Psyco still wins :-)
>
> So, the interesting part is: why?
>
>
> John
My suspicion is that when psyco looks at erfc, it
finds that nothing changes and so replaces the
function call with the resulting number (am i right? it's the
same each time?). This is what a "specializing compiler"
would do, me thinks. So, try using a different number
with each call.
Simon.
More information about the Python-list
mailing list