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 yselivanov
Recipients serhiy.storchaka, vstinner, yselivanov, zbyrne
Date 2016-02-03.20:42:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454532156.31.0.882525082177.issue26280@psf.upfronthosting.co.za>
In-reply-to
Content
Zach, first I was going to collect some stats on this (as Serhiy also suggests).  It would be interesting to collect some stats on how many times BINARY_SUBSCR receives lists, tuples, dicts, and other types.  I'd instrument the code to collect those stats and run Python tests suite and benchmarks.

I'm pretty sure that optimizing lists (and tuples?) is a great idea.  It would also be nice to optimize [-1] lookup.  I'd also measure if we should add a fast path for dicts (PyDict_CheckExact + PyDict_GetItem).

If you have time to work on this issue, then by all means go ahead.  We'll be glad to assist you and review the patch.
History
Date User Action Args
2016-02-03 20:42:36yselivanovsetrecipients: + yselivanov, vstinner, serhiy.storchaka, zbyrne
2016-02-03 20:42:36yselivanovsetmessageid: <1454532156.31.0.882525082177.issue26280@psf.upfronthosting.co.za>
2016-02-03 20:42:36yselivanovlinkissue26280 messages
2016-02-03 20:42:36yselivanovcreate