summaryrefslogtreecommitdiff
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2011-10-05 13:50:52 +0200
committerVictor Stinner <vstinner@wyplay.com>2011-10-05 13:50:52 +0200
commit702c7343957ec4369e89e738fdd157a435f2461f (patch)
tree3c8c0a8ca100745be0280effcec83ab56c1b28fc /Python/getcompiler.c
parent00b2c86d09dccf125fdf7108d3b749f767c277db (diff)
downloadcpython-git-702c7343957ec4369e89e738fdd157a435f2461f.tar.gz
Speedup the ASCII decoder
It is faster for long string and a little bit faster for short strings, benchmark on Linux 32 bits, Intel Core i5 @ 3.33GHz: ./python -m timeit 'x=b"a"' 'x.decode("ascii")' ./python -m timeit 'x=b"x"*80' 'x.decode("ascii")' ./python -m timeit 'x=b"abc"*4096' 'x.decode("ascii")' length | before | after -------+------------+----------- 1 | 0.234 usec | 0.229 usec 80 | 0.381 usec | 0.357 usec 12,288 | 11.2 usec | 3.01 usec
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions