# Feature or enhancement ### Proposal: Currently the indent is generated from scratch for each depth: ```python _current_indent_level += 1 newline_indent = '\n' + _indent * _current_indent_level ``` We can easily re-use the old indent: ```python newline_indent = old_newline_indent + _indent ``` ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-118300 <!-- /gh-linked-prs -->
Activity
serhiy-storchaka commentedon Apr 26, 2024
Could you show any benchmark results?
nineteendo commentedon Apr 26, 2024
See the pull request: #118300 (comment)
nineteendo commentedon May 7, 2024
Do we close this? Or did you mean I could leave it at concatenation?