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 vstinner
Recipients rhettinger, vstinner, yselivanov
Date 2016-02-06.01:49:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454723353.52.0.189269572626.issue26301@psf.upfronthosting.co.za>
In-reply-to
Content
(Oops, I attached the wrong patch, fixed in patch v2.)

Quick & dirty micro-benchmark:

Original:

$ ./python -m timeit -s 'lst=list("hello")' 'lst[2]'
10000000 loops, best of 3: 0.0261 usec per loop

Patched:

$ ./python -m timeit -s 'lst=list("hello")' 'lst[2]'
10000000 loops, best of 3: 0.0186 usec per loop
History
Date User Action Args
2016-02-06 01:49:13vstinnersetrecipients: + vstinner, rhettinger, yselivanov
2016-02-06 01:49:13vstinnersetmessageid: <1454723353.52.0.189269572626.issue26301@psf.upfronthosting.co.za>
2016-02-06 01:49:13vstinnerlinkissue26301 messages
2016-02-06 01:49:13vstinnercreate