mirror of https://github.com/mitsuhiko/flask.git
Browse Source
It's less confusing and it's slightly faster: $ python2.7 -m timeit -s 'foo="a*1024"' 'foo[:1]' 10000000 loops, best of 3: 0.0352 usec per loop $ python2.7 -m timeit -s 'foo="a*1024"' 'foo[0]' 10000000 loops, best of 3: 0.0291 usec per loop $ python3.4 -m timeit -s 'foo="a*1024"' 'foo[:1]' 10000000 loops, best of 3: 0.0473 usec per loop $ python3.4 -m timeit -s 'foo="a*1024"' 'foo[0]' 10000000 loops, best of 3: 0.0302 usec per looppull/1698/head
Marcos Dione
9 years ago
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue