This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients kristjan.jonsson, rhettinger
Date 2008-10-26.13:49:26
SpamBayes Score 9.0573034e-05
Marked as misclassified No
Message-id <1225028969.38.0.902315534545.issue4207@psf.upfronthosting.co.za>
In-reply-to
Content
I am sorry for not doing my research about the age of the compatibility 
fix.
However, modifying the test slightly to work with tuples of
(random.random(), random.random())
shows a performance increase from:

heapify 0.366187741738
pushpop 0.541365033824
replace 2.69348946584
push and pop 3.12545093022

to:

heapify 0.186918030085
pushpop 0.405662172148
replace 1.46039447751
push and pop 1.75253663524

This does look like a large price to pay for this compatibility layer.
History
Date User Action Args
2008-10-26 13:49:29kristjan.jonssonsetrecipients: + kristjan.jonsson, rhettinger
2008-10-26 13:49:29kristjan.jonssonsetmessageid: <1225028969.38.0.902315534545.issue4207@psf.upfronthosting.co.za>
2008-10-26 13:49:27kristjan.jonssonlinkissue4207 messages
2008-10-26 13:49:26kristjan.jonssoncreate