This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add MAP_POPULATE to the mmap library
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Ethan Steinberg, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2020-05-13 00:16 by Ethan Steinberg, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20061 merged python-dev, 2020-05-13 00:21
Messages (3)
msg368752 - (view) Author: Ethan Steinberg (Ethan Steinberg) * Date: 2020-05-13 00:16
This issue (and corresponding pull request) adds MAP_POPULATE to the set of flags exported by the mmap module. This flag is incredibly handy for speeding up data processing and is available on most Linux systems.
msg370032 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-05-26 21:42
New changeset 21fda91f8da96406e6a912f7c312424209c19bef by Ethan Steinberg in branch 'master':
bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)
https://github.com/python/cpython/commit/21fda91f8da96406e6a912f7c312424209c19bef
msg370033 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-05-26 21:44
Thanks Ethan Steinberg, the constant is added to 3.10.

Sadly, adding a new constant is a new feature, and we don't add new features to stable branches. The 3.9 branch no longer accept new features past the feature freeze which is over. In the meanwhile, you can hardcode the constant, but its value may depend on the platform, be careful!
History
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84791
2020-05-26 21:44:11vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg370033

stage: patch review -> resolved
2020-05-26 21:42:52vstinnersetversions: + Python 3.10, - Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
2020-05-26 21:42:27vstinnersetnosy: + vstinner
messages: + msg370032
2020-05-13 00:21:47python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request19369
stage: patch review
2020-05-13 00:16:37Ethan Steinbergcreate