Re:Why is this C++ code faster than my hand-written assembly...
by jacobolus on Wednesday August 23, 2017 @02:12AM
(#15078949)
From what I remember, for such small examples, a + b + c is significantly faster. (The CPython folks might have done some optimization work on this a few years back?)
It’s only if you plan to concatenate a whole lot of strings that join is a clear winner.
It’s only if you plan to concatenate a whole lot of strings that join is a clear winner.