Why is Python so slow?

Gaetan Corneau corg at copernic.com
Fri Jun 9 12:00:09 EDT 2000


William,

> > I am just learning Python and I wrote a little program to 
> modify a text file
> > with 120,000 lines. It took 1hr and 30 mins. I wrote a C 
> program that
> > created the text file from a .dbf and it only took 2 mins.

Please post your code, something is wrong. I processed hundred of files,
containing over a million of C++ code in much less than 1h30.
______________________________________________________
   Gaetan Corneau
   Software Developer 
   Copernic.com 
   http://www.copernic.com
   E-mail: corg at copernic.com                         
______________________________________________________
"Golf is a game whose sole aim is to hit a very small
ball into an even smaller hole, with weapons
singularly ill designed for that purpose." -- Winston Churchill

 




More information about the Python-list mailing list