[pypy-issue] [issue814] Appending string is slower than cpython
benjamin at python.org
Fri Jul 29 00:44:27 CEST 2011
It might be common behavior, but it's not a good idea or an idiom.
''.join() should be used everytime.
2011/7/28 Ismael <tracker at bugs.pypy.org>:
> Ismael <ismaelgfk at gmail.com> added the comment:
> Note that appending strings like this is "common behaviour" in
> CPython. Perhaps this difference in behaviour should be mentioned in
> the docs? Or in a special page for "performance Python"?
> On Thu, Jul 28, 2011 at 7:24 PM, Alex Gaynor <tracker at bugs.pypy.org> wrote:
>> Alex Gaynor <alex.gaynor at gmail.com> added the comment:
>> Not a bug, CPython has ridiculous hacks in it. This operation would be O(n**2)
>> on CPython were it not for those, as it is on PyPy. This won't be fixed.
>> nosy: +agaynor
>> status: unread -> wontfix
>> PyPy bug tracker <tracker at bugs.pypy.org>
> PyPy bug tracker <tracker at bugs.pypy.org>
> pypy-issue mailing list
> pypy-issue at python.org
More information about the pypy-issue