Performance penalty for using classes?

Neil Hodgson nhodgson at eb2.net.au
Wed Jan 15 17:09:59 EST 2003


Steve Holden wrote:
 >>>long iterations = 1000000;
>>
> [...]
> [Python]
> 
>>>        iterations = 100000
>>
> [...]
> 
> Yes, it's an unfortunate discrepancy between the Python and C code that the
> latter runs ten times as many tests :-(

    It is bugs like this that make adding some optional punctuation to 
numbers a good idea. As in Ada:
iterations = 1_000_000
    or for any Indians:
iterations = 100_0000

    Neil





More information about the Python-list mailing list