Performance of int/long in Python 3

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Apr 3 01:32:11 EDT 2013


On Wed, 03 Apr 2013 14:31:03 +1100, Neil Hodgson wrote:

>     Sorting a million string list (all the file paths on a particular
> computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so
> we're out of the 'not noticeable by humans' range. Perhaps this is still
> a 'micro-benchmark' - I'd just like to avoid adding email access to get
> this over the threshold.

I cannot confirm this performance regression. On my laptop (Debian Linux, 
not Windows), I can sort a million file names in approximately 1.2 
seconds in both Python 3.2 and 3.3. There is no meaningful difference in 
speed between the two versions.



-- 
Steven



More information about the Python-list mailing list