summaryrefslogtreecommitdiff
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-06 16:06:49 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-02-06 16:06:49 +0100
commit515f1cf20f4e9656b1bcda236bad8ed0e33770f0 (patch)
treecdb40e1de8aa933b51fd390aa0448208dc04ecd7 /Modules/_elementtree.c
parentb9bcd948d6c64f86e0999e14542be258b0732792 (diff)
downloadcpython-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/_elementtree.c')
0 files changed, 0 insertions, 0 deletions