[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
superseder:  -> ceval: Optimize list[int] (subscript) operation similarly to 
CPython 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: haypo, rhettinger, yselivanov
priority: normal
severity: normal
status: open
title: ceval.c: reintroduce fast-path for list[index] in BINARY_SUBSCR
type: performance
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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")' 'lst[2]'
1000 loops, best of 3: 0.0186 usec per loop

--
Added file: http://bugs.python.org/file41834/binary_subscr-2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com