Message149731
> I also noticed a difference between Python 3.2 and 3.3,
> but Python 3.3 is 13% *faster* (and not slower).
Oops, I misused the timeit module, there is a regression.
> New changeset c802bfc8acfc by Victor Stinner in branch 'default':
> Issue #13621: Optimize str.replace(char1, char2)
./python -m timeit -s 'f=open("/tmp/README"); t=f.read(); f.close(); t.encode("ascii")' 't.replace("\n", " ")'
Python 3.2: 6.44 usec
Python 3.3 before: 11.6 usec
Python 3.3 after: 2.77 usec |
|
Date |
User |
Action |
Args |
2011-12-18 01:47:12 | vstinner | set | recipients:
+ vstinner, loewis, collinwinter, pitrou, ezio.melotti, flox, Boris.FELD, python-dev |
2011-12-18 01:47:11 | vstinner | set | messageid: <1324172831.97.0.124500626891.issue13621@psf.upfronthosting.co.za> |
2011-12-18 01:47:11 | vstinner | link | issue13621 messages |
2011-12-18 01:47:10 | vstinner | create | |
|