[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2018-10-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9223 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread Yury Selivanov
Yury Selivanov added the comment: I think this is a duplicate of http://bugs.python.org/issue26280... -- ___ Python tracker ___

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread STINNER Victor
STINNER Victor added the comment: > I think this is a duplicate of http://bugs.python.org/issue26280... Oh, I missed this one. I didn't understand "[]" in the title. I didn't understand the purpose of optimizing BUILD_LIST :-D -- resolution: -> duplicate status: open -> closed

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread STINNER Victor
New submission from STINNER Victor: Copy of msg222985 by Raymond Hettinger from issue #21955: "There also used to be a fast path for binary subscriptions with integer indexes. I would like to see that performance regression fixed if it can be done cleanly." -- messages: 259708 nosy:

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I attached the wrong patch, fixed in patch v2.) Quick & dirty micro-benchmark: Original: $ ./python -m timeit -s 'lst=list("hello")' 'lst[2]' 1000 loops, best of 3: 0.0261 usec per loop Patched: $ ./python -m timeit -s 'lst=list("hello")'

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file41833/binary_subscr.patch ___ Python tracker ___

[issue26301] ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR

2016-02-05 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file41833/binary_subscr.patch ___ Python tracker