]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Speedup str[a:b:step] for step != 1
authorVictor Stinner <vstinner@wyplay.com>
Wed, 5 Oct 2011 12:13:28 +0000 (14:13 +0200)
committerVictor Stinner <vstinner@wyplay.com>
Wed, 5 Oct 2011 12:13:28 +0000 (14:13 +0200)
commitc80d6d20d57090016372ba6be7325b1fc0649413
treed28fdb1b07492ebabfc8133405d3cee32e7431f5
parentae86485517cab27d6cef96d036e870888660a144
Speedup str[a:b:step] for step != 1

Try to stop the scanner of the maximum character before the end using a limit
depending on the kind (e.g. 256 for PyUnicode_2BYTE_KIND).
Objects/unicodeobject.c