[Python-Dev] Optimizing list.sort() by checking type in advance

Steven D'Aprano steve at pearwood.info
Mon Oct 10 20:09:00 EDT 2016


On Mon, Oct 10, 2016 at 09:16:32PM +0000, Elliot Gorokhovsky wrote:

> Anyway, benchmarking technique aside, the point is that it it works well
> for small lists (i.e. doesn't affect performance).

You've been shown that there is something suspicious about your 
benchmarking technique, something that suggests that the timing results 
aren't trustworthy. Until you convince us that your timing results are 
reliable and trustworthy, you shouldn't be drawing *any* conclusions 
about your fastsort versus the standard sort.


-- 
Steve


More information about the Python-Dev mailing list