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 rhettinger
Recipients Rhamphoryncus, Steve Howell, flox, rhettinger, stutzbach
Date 2010-01-27.00:01:43
SpamBayes Score 0.00739373
Marked as misclassified No
Message-id <1264550506.6.0.635883258471.issue7784@psf.upfronthosting.co.za>
In-reply-to
Content
Please take care in presenting timings.  It is easy to get misleading results:

* Factor-out the attribute lookup time (since that isn't the part being changed:

  -s 'c = range(1000000); c_ins=c.insert; c_pop=c.pop' 
  'c_insert(0, c_pop())'

* The case of alternately prepending and the popping the 0th element is atypical.  Trying prepending many, then popping many.   Trying popping first, then prepending.

* The patch needs to be throughly exercised so that we cover all of the expected behaviors (do many prepends trigger memmoves, do many prepops leave tons of unused space, what happens with the normal case of a moving queue where the average size varies but hovers around a typical mean).

A decision cannot be based on exercising a small fragment of a data structure on just the things it is good at.  What happens to other typical list behavior and lookup times, etc?
History
Date User Action Args
2010-01-27 00:01:47rhettingersetrecipients: + rhettinger, Rhamphoryncus, stutzbach, flox, Steve Howell
2010-01-27 00:01:46rhettingersetmessageid: <1264550506.6.0.635883258471.issue7784@psf.upfronthosting.co.za>
2010-01-27 00:01:44rhettingerlinkissue7784 messages
2010-01-27 00:01:43rhettingercreate