list.pop(0) vs. collections.dequeue
Daniel Stutzbach
daniel at stutzbachenterprises.com
Sun Jan 24 16:51:00 EST 2010
On Sun, Jan 24, 2010 at 1:53 PM, Steve Howell <showell30 at yahoo.com> wrote:
> I don't think anybody provided an actual link, but please correct me
> if I overlooked it.
I have to wonder if my messages are all ending up in your spam folder
for some reason. :-)
PEP 3128 (which solves your problem, but not using the implementation
you suggest)
http://www.python.org/dev/peps/pep-3128/
Implementation as an extension module:
http://pypi.python.org/pypi/blist/
Related discussion:
http://mail.python.org/pipermail/python-3000/2007-April/006757.html
http://mail.python.org/pipermail/python-3000/2007-May/007491.html
Detailed performance comparison:
http://stutzbachenterprises.com/performance-blist
I maintain a private fork of Python 3 with the blist replacing the
regular list, as a way of rigorously testing the blist implementation.
Although I originally proposed a PEP, I am content to have the blist
exist as a third-party module.
--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC
More information about the Python-list
mailing list