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 brandtbucher, pablogsal, rhettinger, serhiy.storchaka
Date 2019-03-12.08:46:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552380378.93.0.204838518849.issue36229@roundup.psfhosted.org>
In-reply-to
Content
This is an interesting idea. But I have two concerns.

1. It is hard to implement refcount-based optimization on Python implementations which do not use reference counting (i.e. PyPy). If the effect of this optimization will be significant, people will become writing a code that depends on it, and this will cause problems on other implementations.

2. Currently list1 + list2 + list3 returns a list which allocates the exact amount of memory needed to contain its content. But with the proposed changes the result list could preallocate more memory. If the result is a long living object, this can cause to wasting of memory.
History
Date User Action Args
2019-03-12 08:46:18serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pablogsal, brandtbucher
2019-03-12 08:46:18serhiy.storchakasetmessageid: <1552380378.93.0.204838518849.issue36229@roundup.psfhosted.org>
2019-03-12 08:46:18serhiy.storchakalinkissue36229 messages
2019-03-12 08:46:18serhiy.storchakacreate