| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…e-150942.sTrSpL.rst
There was a problem hiding this comment.
lgtm!
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @corona10 for commit f3fd338 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F155922%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Append result items to the output list with _PyList_AppendTakeRef instead of PyList_Append followed by Py_DECREF in the stringlib SPLIT_ADD (past the 12-slot prealloc) and SPLIT_APPEND (used by splitlines() for every line) macros, removing a reference-count round-trip per appended item (and a per-append lock on the free-threaded build). This covers split/rsplit/splitlines for str, bytes and bytearray. The result list is freshly allocated and stays local to the split function until it is returned.
Microbenchmarks
test_str and test_bytes pass, including -R 3:3 refleak runs.
Benchmark script