Performance penalty for using classes?

Cliff Wells LogiplexSoftware at earthlink.net
Wed Jan 15 16:02:33 EST 2003


On Wed, 2003-01-15 at 12:42, Steve Holden wrote:
> "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 :-(

Just shows how error-prone writing in C is <wink>.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308






More information about the Python-list mailing list