Speed Comparison Perl Python & C

Ville Vainio ville at spammers.com
Sun Feb 29 15:36:10 EST 2004


>>>>> "Bart" == Bart Nessux <bart_nessux at hotmail.com> writes:

    Bart> I think C is *significantly* faster when it's being used by
    Bart> someone who *knows* what they're doing and more importantly,
    Bart> they understand *why* C is faster for the task. That's

I don't think knowing what you are doing matters all that much. When
you have to make a database query, you have to make database
query. Actually, Python code might even be faster in circumstances
like these, because you can write more sensible algorithms w/o
investing a week of debugging. So caching data in memory becomes more
appealing.

C is extremely fast when you are doing stuff that requires intensive
computation, loops with millions of iterations etc. Luckily this also
applies to Python modules written in C.

-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list