[Python-Dev] Usage of += on strings in loops in stdlib (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Tue Feb 12 22:03:04 CET 2013
- Previous message: [Python-Dev] what is a dict_keys and where can I import it from?
- Next message: [Python-Dev] Usage of += on strings in loops in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] what is a dict_keys and where can I import it from?
- Next message: [Python-Dev] Usage of += on strings in loops in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]