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 lemburg
Recipients lemburg, orivej, pitrou
Date 2008-01-27.18:05:39
SpamBayes Score 0.046205033
Marked as misclassified No
Message-id <1201457140.47.0.873900594838.issue1943@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed, those optimizations do make the implementation more complicated.
It's also not clear whether they would really be worth it.

#1629305 only provided speedups for the case where you write s += 'abc'.
The usual idiom for this is to use a list and then concatenate in one
go. If you want a really fast approach, you'd use cStringIO or perhaps
the bufferarray. I don't think that optimizing for just one particular
use case warrants making the code more complicated or changing the C
interface radically.

In your case, I think that closing the door for being able to easily
extend the type implement at the C is the main argument against it. The
speedups are only marginal and can also be achieved (to some extent) by
tuning the existing implementation's parameters.
History
Date User Action Args
2008-01-27 18:05:40lemburgsetspambayes_score: 0.046205 -> 0.046205033
recipients: + lemburg, pitrou, orivej
2008-01-27 18:05:40lemburgsetspambayes_score: 0.046205 -> 0.046205
messageid: <1201457140.47.0.873900594838.issue1943@psf.upfronthosting.co.za>
2008-01-27 18:05:39lemburglinkissue1943 messages
2008-01-27 18:05:39lemburgcreate