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 serhiy.storchaka
Recipients ammar2, benjamin.peterson, ezio.melotti, gvanrossum, lemburg, serhiy.storchaka, steven.daprano, vstinner
Date 2016-07-06.07:55:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467791754.35.0.441843650436.issue27458@psf.upfronthosting.co.za>
In-reply-to
Content
1. It would be interesting to see an example showing the benefit of this change. How large is the benefit, and how common is this case?

2. The optimization of string concatenation is CPython specific, and AFAIK it was decided not to extend it to other cases (e.g. to bytes). The recommended way for efficient string concatenation is using str.join or io.StringIO. Or classic string formatting -- this is yet one CPython specific optimization.

3. Non-compact string representation is legacy. It is kept for compatibility with existing code, but will be removed in future. The work with non-compact strings is not always efficient.
History
Date User Action Args
2016-07-06 07:55:54serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, gvanrossum, vstinner, benjamin.peterson, ezio.melotti, steven.daprano, ammar2
2016-07-06 07:55:54serhiy.storchakasetmessageid: <1467791754.35.0.441843650436.issue27458@psf.upfronthosting.co.za>
2016-07-06 07:55:54serhiy.storchakalinkissue27458 messages
2016-07-06 07:55:53serhiy.storchakacreate