This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients lemburg, orivej, pitrou
Date 2008-01-27.19:03:09
SpamBayes Score 0.0237709
Marked as misclassified No
Message-id <1201460590.16.0.369302690305.issue1943@psf.upfronthosting.co.za>
In-reply-to
Content
I know it's not the place to discuss #1629305, but the join() solution
is not always faster. Why? Because 1) there's the list contruction and
method call overhead 2) ceval.c has some bytecode hackery to try and
make plain concatenations somewhat less slow.

As for cStringIO, I actually observed in some experiments that it was
slower than the other alternatives, at least for short strings. All in
all, choosing between the three idioms is far from obvious and needs
case-by-case analysis.
History
Date User Action Args
2008-01-27 19:03:10pitrousetspambayes_score: 0.0237709 -> 0.0237709
recipients: + pitrou, lemburg, orivej
2008-01-27 19:03:10pitrousetspambayes_score: 0.0237709 -> 0.0237709
messageid: <1201460590.16.0.369302690305.issue1943@psf.upfronthosting.co.za>
2008-01-27 19:03:09pitroulinkissue1943 messages
2008-01-27 19:03:09pitroucreate