Optimize textwrap.indent
a bit more.
#107424
Labels
3.13
bugs and security fixes
performance
Performance or resource usage
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
The optimization introduced in #107374 can be improved as follows:
Current code
Improved code
Benchmarks
However the results are very different between two runs (and my laptop may be dying) so I'd like some confirmation from others.
Linked PRs
textwrap.indent()
#107426The text was updated successfully, but these errors were encountered: