Message259516
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. |
|
Date |
User |
Action |
Args |
2016-02-03 20:42:36 | yselivanov | set | recipients:
+ yselivanov, vstinner, serhiy.storchaka, zbyrne |
2016-02-03 20:42:36 | yselivanov | set | messageid: <1454532156.31.0.882525082177.issue26280@psf.upfronthosting.co.za> |
2016-02-03 20:42:36 | yselivanov | link | issue26280 messages |
2016-02-03 20:42:36 | yselivanov | create | |
|