why python is slower than java?

Harald Massa cpl.19.ghum at spamgourmet.com
Sat Nov 6 04:39:24 EST 2004


Israel Raj T <rambam at bigpond.net.au> wrote in news:878y9gbkh7.fsf at pop-
server.bigpond.net.au:

> On the updated version at http://shootout.alioth.debian.org/craps.php,
> Python beats at least two java implementations.

Very interesting link, great ressource!!!

What really is disturbing: within the test "hash access" perl2 comes out 
first compared with java.

A know that Python dictionaries are the most heavily used datastructure 
(because it is allways used within Python itself), and from looking at the 
sourcecode there is the line "with help from Raymund Hettinger"; so I am 
very sure it is probably THE optimal coding.

So... string processing, regular expression, blablabla no problem; but why 
second to perl2 in Hash-access ???

Harald



More information about the Python-list mailing list