diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-06 16:06:49 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-06 16:06:49 +0100 |
commit | 515f1cf20f4e9656b1bcda236bad8ed0e33770f0 (patch) | |
tree | cdb40e1de8aa933b51fd390aa0448208dc04ecd7 /Modules/_ctypes/libffi/src/powerpc/ppc_closure.S | |
parent | b9bcd948d6c64f86e0999e14542be258b0732792 (diff) | |
download | cpython-515f1cf20f4e9656b1bcda236bad8ed0e33770f0.tar.gz |
Optimize deque index, insert and rotate() methods
Issue #29452: Use METH_FASTCALL calling convention for index(), insert() and
rotate() methods of collections.deque to avoid the creation a temporary tuple
to pass position arguments. Speedup on deque methods:
* d.rotate(): 1.10x faster
* d.rotate(1): 1.24x faster
* d.insert(): 1.18x faster
* d.index(): 1.24x faster
Diffstat (limited to 'Modules/_ctypes/libffi/src/powerpc/ppc_closure.S')
0 files changed, 0 insertions, 0 deletions