summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-05-31 01:40:08 (GMT)
committerEric Smith <eric@trueblade.com>2008-05-31 01:40:08 (GMT)
commit1d138f1c1a37a630099b629cf42c0bbe46d1344b (patch)
tree87b3d6cd5844fb390ecfce7851589687bf757ea8 /PC
parentfc8dca27d330f0c7c47713d2557f190c517c170e (diff)
downloadcpython-1d138f1c1a37a630099b629cf42c0bbe46d1344b.zip
cpython-1d138f1c1a37a630099b629cf42c0bbe46d1344b.tar.gz
cpython-1d138f1c1a37a630099b629cf42c0bbe46d1344b.tar.bz2
Optimization of str.format() for cases with unicode, long, and float
arguments. This gives about 30% speed improvement for the simplest (but most common) cases. This patch skips the __format__ dispatch, and also avoids creating an object to hold the format_spec. Unfortunately, backporting this to 2.6 is going to be more challenging due to str/unicode issues with format_spec. I'll work on that next. Then I'll spend some time profiling and see what that tells me.
Diffstat (limited to 'PC')
0 files changed, 0 insertions, 0 deletions