Python is much faster than Java?

Fred L. Drake, Jr. fdrake at acm.org
Mon Jan 10 15:44:48 EST 2000


Paul Prescod writes:
 > Java and Python implementations vary widely so it is probably not useful
 > to say that one is always faster than the other. Presuming you used
 > CPython, the big variable is probably the JVM you used for Java. I would
 > expect some to be much faster than CPython and some to be much slower.

  This and the fact that if the [].sort() method was used from
CPython, and only built-in data types affected the sort computation,
all the code was in C and is very highly optimized.
  Tim Peters recently described some aspects of the [].sort()
implementation if anyone really wants to dig in and understand the
details of that.


  -Fred

--
Fred L. Drake, Jr.	  <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list