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 Steve Howell
Recipients Steve Howell
Date 2010-01-26.10:28:02
SpamBayes Score 4.594658e-13
Marked as misclassified No
Message-id <1264501685.22.0.657604584157.issue7784@psf.upfronthosting.co.za>
In-reply-to
Content
I am attaching a patch to improve the performance of list operations that insert or delete elements at the front of the list.  The patch has had some discussion on python-dev in the thread entitled "patch to make list.pop(0) work in O(1) time."

So far the verdict is not to touch list internals to achieve this performance gain, but I am looking to improve the patch regardless and possibly include it in a PEP that documents the decision not to incorporate the patch, with the hope that it either prevents future duplication of effort or eventually gets accepted.

At a bare minimum, the patch needs extensive code review, as it touches a lot of internals, and it needs stylistic cleanup.  But it does pass all the tests, and it has been benchmarked to show 100X speed improvement on a small test case.
History
Date User Action Args
2010-01-26 10:28:05Steve Howellsetrecipients: + Steve Howell
2010-01-26 10:28:05Steve Howellsetmessageid: <1264501685.22.0.657604584157.issue7784@psf.upfronthosting.co.za>
2010-01-26 10:28:03Steve Howelllinkissue7784 messages
2010-01-26 10:28:02Steve Howellcreate