[issue38436] Improved performance for list addition.
Serhiy Storchaka
report at bugs.python.org
Fri Oct 11 03:13:31 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
How often do you need to add three or more lists in comparison with other uses of the "+" operator?
How larger is the benefit of this optimization?
How much it slows down other uses of the "+" operator?
Would be nice if you provide some numbers.
More efficient way of concatenating several lists in single expression is:
[*a, *b, *c, *d, ...]
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38436>
_______________________________________
More information about the Python-bugs-list
mailing list