diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2022-10-10 22:14:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 22:14:31 (GMT) |
commit | f871e9a7bb4eb823da481b99052636763ec8e710 (patch) | |
tree | ffb1a5823edac61da495fe3af00cf02d52a717d7 /Misc/NEWS.d | |
parent | 6a757da080121c4add61931ae46389b3f3e990a1 (diff) | |
download | cpython-f871e9a7bb4eb823da481b99052636763ec8e710.zip cpython-f871e9a7bb4eb823da481b99052636763ec8e710.tar.gz cpython-f871e9a7bb4eb823da481b99052636763ec8e710.tar.bz2 |
gh-44098: Release the GIL during mmap on Unix (GH-98146)
This seems pretty straightforward. The issue mentions other calls in mmapmodule that we could release the GIL on, but those are in methods where we'd need to be careful to ensure that something sensible happens if those are called concurrently. In prior art, note that #12073 released the GIL for munmap. In a toy benchmark, I see the speedup you'd expect from doing this.
Automerge-Triggered-By: GH:gvanrossum
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-10-10-09-52-21.gh-issue-44098.okcqJt.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-10-10-09-52-21.gh-issue-44098.okcqJt.rst b/Misc/NEWS.d/next/Library/2022-10-10-09-52-21.gh-issue-44098.okcqJt.rst new file mode 100644 index 0000000..4efea4a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-10-10-09-52-21.gh-issue-44098.okcqJt.rst @@ -0,0 +1 @@ +Release the GIL when creating :class:`mmap.mmap` objects on Unix. |