Performance penalty for using classes?

Steve Holden sholden at holdenweb.com
Wed Jan 15 15:42:21 EST 2003


"André Jonsson" <tatsujin at despammed.com> wrote ...
> Seems to me that the C program is almost 10 times faster...
>
[...]
[C]
> > 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 :-(

but-let's-not-let-the-truth-stop-a-great-rumour-ly y'rs  - steve
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Bring your musical instrument to PyCon!    http://www.python.org/pycon/







More information about the Python-list mailing list