Message347400
It's my understanding that this is a quality of implementation issue, and that in other (non-CPython) implementations, the run time for repeated concatenation may indeed be quadratic.
The optimization in CPython relies on knowing the reference count is 1. If CPython were to switch away from reference counting, I would expect the behavior of repeated concatenation to be quadratic again.
I'm not sure if the deserves a documentation note or not. |
|
Date |
User |
Action |
Args |
2019-07-05 22:32:02 | eric.smith | set | recipients:
+ eric.smith, docs@python, dmitriym |
2019-07-05 22:32:02 | eric.smith | set | messageid: <1562365922.71.0.959996768848.issue37512@roundup.psfhosted.org> |
2019-07-05 22:32:02 | eric.smith | link | issue37512 messages |
2019-07-05 22:32:02 | eric.smith | create | |
|