Usage of += on strings in loops in stdlib
13 Feb
2013
13 Feb
'13
5:03 a.m.
Hi We recently encountered a performance issue in stdlib for pypy. It turned out that someone commited a performance "fix" that uses += for strings instead of "".join() that was there before. Now this hurts pypy (we can mitigate it to some degree though) and possible Jython and IronPython too. How people feel about generally not having += on long strings in stdlib (since the refcount = 1 thing is a hack)? What about other performance improvements in stdlib that are problematic for pypy or others? Personally I would like cleaner code in stdlib vs speeding up CPython. Typically that also helps pypy so I'm not unbiased. Cheers, fijal
4082
Age (days ago)
4084
Last active (days ago)
61 comments
21 participants
participants (21)
-
Alexandre Vassalotti
-
Amaury Forgeot d'Arc
-
Antoine Pitrou
-
Brett Cannon
-
Chris Withers
-
Christian Heimes
-
Christian Tismer
-
Daniel Holth
-
fwierzbickiï¼ gmail.com
-
Larry Hastings
-
Lennart Regebro
-
Maciej Fijalkowski
-
MRAB
-
Ned Batchelder
-
Nick Coghlan
-
R. David Murray
-
Serhiy Storchaka
-
Steven D'Aprano
-
Terry Reedy
-
Victor Stinner
-
Xavier Morel