Message268148
It seems to me that calling __contains__() (PySequence_Contains()) isn't necessary, as the first and last elements of the list are already known, and therefore known to be in the list. Revising the behaviour of popitem() to avoid calling _odict_popkey_hash() seems like it may provide a marginal performance benefit as well as fix the problem. Calling PyObject_DelItem() directly on the node should work fine I believe. |
|
Date |
User |
Action |
Args |
2016-06-10 19:58:07 | kaniini | set | recipients:
+ kaniini, rhettinger, eric.snow, serhiy.storchaka, xiang.zhang |
2016-06-10 19:58:07 | kaniini | set | messageid: <1465588687.36.0.847425938606.issue27275@psf.upfronthosting.co.za> |
2016-06-10 19:58:07 | kaniini | link | issue27275 messages |
2016-06-10 19:58:07 | kaniini | create | |
|