Re:Efficient String Concatenation in Python
by anaphor on Saturday September 07, 2013 @04:41PM
(#6346539)
Does PyPy have the same heuristic? If not, I wouldn't recommend relying on it.
[ Parent
| on HN ]
Re:Efficient String Concatenation in Python
by zokier on Saturday September 07, 2013 @04:57PM
(#6346595)
If not, I would recommend submitting a bug to PyPy.
Re:Efficient String Concatenation in Python
by kingkilr on Saturday September 07, 2013 @05:58PM
(#6346787)
No it doesn't, and that heuristic isn't possible. It's based on looking at the reference counting and mutating an immutable object. It's pretty awful.
Re:Efficient String Concatenation in Python
by ewoodrich on Saturday September 07, 2013 @09:36PM
(#6347449)
If GP is referring to CPython patch #980695, it appears to be available in PyPy, but requires an additional flag.
"We have it, just not enabled by default. --objspace-with-strbuf I think" [1]
[1] https://mail.python.org/pipermail/python-dev/2013-February/1...