| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This is funny because this was my very first attempt at CPython: https://github.com/python/cpython/pull/107426/files :') It was rejected at that time (#107426 (comment)) though
Sorry, something went wrong.
|
Oh, I didn't see that PR! I think the optimisation is worth it, it's a small change and a reasonable speed-up for the default case (predicate=None). I'll give you co-authored-by credit! A |
Sorry, something went wrong.
| @@ -0,0 +1,2 @@ | |||
| Improved performance of :func:`textwrap.dedent` by an average of ~1.3x. | |||
There was a problem hiding this comment.
s/dedent/indent/
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Follow-up to #131919, I noticed there was opportunity for improvement here too, a ~30% speed-up.
Benchmarked by indenting the contents of Objects/unicodeobject.c.
A