Message269869
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. |
|
Date |
User |
Action |
Args |
2016-07-06 07:55:54 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, gvanrossum, vstinner, benjamin.peterson, ezio.melotti, steven.daprano, ammar2 |
2016-07-06 07:55:54 | serhiy.storchaka | set | messageid: <1467791754.35.0.441843650436.issue27458@psf.upfronthosting.co.za> |
2016-07-06 07:55:54 | serhiy.storchaka | link | issue27458 messages |
2016-07-06 07:55:53 | serhiy.storchaka | create | |
|