Last question of the day (This one's easy!)

Darrell news at dorb.com
Thu Sep 30 22:31:02 EDT 1999


Tried your example in C, Java and Python. "C" ~2sec, Java was 1.5min and
Python was 4.5 min.

This isn't as significant as it sounds though. The algorithm is often the
largest impact on performance. Making significant algorithm changes to gain
performance is vastly easier in Python.

Drop into Java or "C" for that inner loop. Builtins like string.split and
string.join are examples of some stuff better done in "C".

Notice how much faster "C" is than Java.


--
--Darrell






More information about the Python-list mailing list