From: Susanne M. <sus...@un...> - 2001-04-23 08:00:09
|
Hi, I was very amazed yesterday when I wanted to calculate a simple thing with Python. I typed for a in range(200): for b in range(200): for c in range(200): pass and it took over 10 seconds! I typed the same thing in Borland Delphi (on the same machine, a Pentium III) and it was immediate. One wouldn't even realize that it was calculating. In C++ it was slightly slower than in Delphi, but by far not as slow as Python. Why is it so terribly slow, even if it doesn't need to calculate anything? Is there a possibility for accelerating this? thanks Susanne -- ------------------------------------------------------- Susanne Moelbert Universite de Fribourg Departement of Theoretical Physics CH-1700 Fribourg Switzerland Phone: ++41 (0)26 300 91 46 (office) ++41 (0)26 424 19 33 (home) e-mail: sus...@un... my homepage: http://ptheosg00.unifr.ch/~moelbert/ ------------------------------------------------------- |