Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MAP_POPULATE to the mmap library #84791

Closed
Lalaland mannequin opened this issue May 13, 2020 · 3 comments
Closed

Add MAP_POPULATE to the mmap library #84791

Lalaland mannequin opened this issue May 13, 2020 · 3 comments
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@Lalaland
Copy link
Mannequin

Lalaland mannequin commented May 13, 2020

BPO 40611
Nosy @vstinner, @lalaland
PRs
  • bpo-40611: Adds MAP_POPULATE to the mmap library #20061
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-05-26.21:44:11.474>
    created_at = <Date 2020-05-13.00:16:37.196>
    labels = ['type-feature', 'library', '3.10']
    title = 'Add MAP_POPULATE to the mmap library'
    updated_at = <Date 2020-05-26.21:44:11.473>
    user = 'https://github.com/Lalaland'

    bugs.python.org fields:

    activity = <Date 2020-05-26.21:44:11.473>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-26.21:44:11.474>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2020-05-13.00:16:37.196>
    creator = 'Ethan Steinberg'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40611
    keywords = ['patch']
    message_count = 3.0
    messages = ['368752', '370032', '370033']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'python-dev', 'Ethan Steinberg']
    pr_nums = ['20061']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue40611'
    versions = ['Python 3.10']

    @Lalaland
    Copy link
    Mannequin Author

    Lalaland mannequin commented May 13, 2020

    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.

    @Lalaland Lalaland mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 13, 2020
    @vstinner
    Copy link
    Member

    New changeset 21fda91 by Ethan Steinberg in branch 'master':
    bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)
    21fda91

    @vstinner vstinner added 3.10 only security fixes and removed 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes labels May 26, 2020
    @vstinner
    Copy link
    Member

    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!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant