[issue44194] Folding ''.join(<known number of elts>) into f-strings

Eric V. Smith report at bugs.python.org
Fri May 21 16:45:21 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

> It is a pretty-targeted optimization, so I don't expect it to speed up the macro benchmarks. Though that shouldn't be a blocker for small, targeted optimizations.

In the past we've rejected optimizations that make the code more complex and don't result in any noticeable real-world speedups. I don't think that policy has changed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44194>
_______________________________________


More information about the Python-bugs-list mailing list