8000 gh-130167: Optimise ``textwrap.dedent()`` by AA-Turner · Pull Request #131919 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-130167: Optimise textwrap.dedent() #131919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 31, 2025
Prev Previous commit
Update NEWS
  • Loading branch information
AA-Turner committed Mar 31, 2025
commit bf58dfa27118c0f724eb8395fc9db66df98fccc1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Improved performance of :func:`textwrap.dedent` by ~2.4x,
Improved performance of :func:`textwrap.dedent` by an average of ~2.4x,
(with improvements of up to 4x for large inputs),
and fixed a bug where blank lines with whitespace characters other than space
or horizontal tab were not normalised to the newline.
Patch by Adam Turner and Marius Juston.
Patch by Adam Turner, Marius Juston, and Pieter Eendebak.
Loading
0