In article <[EMAIL PROTECTED]>, sturlamolden <[EMAIL PROTECTED]> wrote: >On May 18, 5:46 am, "inhahe" <[EMAIL PROTECTED]> wrote: > >> The numbers I heard are that Python is 10-100 times slower than C. > >Only true if you use Python as if it was a dialect of Visual Basic. If >you use the right tool, like NumPy, Python can be fast enough. Also >note that Python is not slower than any other language (including C) >if the code is i/o bound. As it turns out, most code is i/o bound, >even many scientific programs. > >In scientific research, CPU time is cheap and time spent programming >is expensive. Instead of optimizing code that runs too slowly, it is >often less expensive to use fancier hardware, like parallell >computers. For Python, we e.g. have mpi4py which gives us access to >MPI. It can be a good advice to write scientific software >parallelizable from the start. . [more of same] . . I can hardly overemphasize how often it happens not just that Python is more than 1% as fast as C, not just that Python is fast enough, but that real-world programs written in Python are FASTER then their homologs coded in C.
-- http://mail.python.org/mailman/listinfo/python-list