]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119518: Stop interning strings in pathlib GH-123356)
authorBarney Gale <barney.gale@gmail.com>
Mon, 2 Sep 2024 16:14:09 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 16:14:09 +0000 (18:14 +0200)
commit5002f17794a9f403540305c733698d1e01699490
treebcab059838634606c903922342de2c9603aa64b8
parent77a2fb4bf1a1b160d6ce105508288fc77f636943
GH-119518: Stop interning strings in pathlib GH-123356)

Remove `sys.intern(str(x))` calls when normalizing a path in pathlib. This
speeds up `str(Path('foo/bar'))` by about 10%.
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib.py
Misc/NEWS.d/next/Library/2024-08-26-18-48-13.gh-issue-119518.QFYH9q.rst [new file with mode: 0644]