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

Deepfreeze use preallocated small ints #90601

Closed
kumaraditya303 opened this issue Jan 20, 2022 · 2 comments
Closed

Deepfreeze use preallocated small ints #90601

kumaraditya303 opened this issue Jan 20, 2022 · 2 comments
Labels
3.11 only security fixes

Comments

@kumaraditya303
Copy link
Contributor

BPO 46443
Nosy @gvanrossum, @kumaraditya303
PRs
  • bpo-46443: deepfreeze use preallocated small ints #30715
  • 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 2022-01-20.06:41:08.715>
    created_at = <Date 2022-01-20.05:22:50.843>
    labels = ['3.11']
    title = 'Deepfreeze use preallocated small ints'
    updated_at = <Date 2022-01-20.06:41:08.714>
    user = 'https://github.com/kumaraditya303'

    bugs.python.org fields:

    activity = <Date 2022-01-20.06:41:08.714>
    actor = 'kumaraditya'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-20.06:41:08.715>
    closer = 'kumaraditya'
    components = []
    creation = <Date 2022-01-20.05:22:50.843>
    creator = 'kumaraditya'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46443
    keywords = []
    message_count = 2.0
    messages = ['411002', '411004']
    nosy_count = 2.0
    nosy_names = ['gvanrossum', 'kumaraditya']
    pr_nums = ['30715']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46443'
    versions = ['Python 3.11']

    @kumaraditya303 kumaraditya303 added 3.11 only security fixes labels Jan 20, 2022
    @kumaraditya303
    Copy link
    Contributor Author

    It saves space in the codeobjects created by deepfreeze and reuses already cached ints so no allocation overhead.

    @gvanrossum
    Copy link
    Member

    New changeset 194ecc6 by Kumar Aditya in branch 'main':
    bpo-46443: deepfreeze: use small ints and singleton zero bytes (GH-30715)
    194ecc6

    @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.11 only security fixes
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants