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

Statically allocate and initialize the latin1 characters. #91037

Closed
kumaraditya303 opened this issue Feb 28, 2022 · 3 comments
Closed

Statically allocate and initialize the latin1 characters. #91037

kumaraditya303 opened this issue Feb 28, 2022 · 3 comments
Labels
3.11 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage

Comments

@kumaraditya303
Copy link
Contributor

BPO 46881
Nosy @gvanrossum, @markshannon, @ericsnowcurrently, @JelleZijlstra, @miss-islington, @Fidget-Spinner, @kumaraditya303
PRs
  • bpo-46881: Statically allocate and initialize the latin1 characters. #31616
  • bpo-46881: Fix refleak from GH-31616 #31805
  • 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-03-10.06:26:24.643>
    created_at = <Date 2022-02-28.13:02:28.503>
    labels = ['interpreter-core', '3.11', 'performance']
    title = 'Statically allocate and initialize the latin1 characters.'
    updated_at = <Date 2022-03-11.09:05:16.593>
    user = 'https://github.com/kumaraditya303'

    bugs.python.org fields:

    activity = <Date 2022-03-11.09:05:16.593>
    actor = 'kj'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-10.06:26:24.643>
    closer = 'kumaraditya'
    components = ['Interpreter Core']
    creation = <Date 2022-02-28.13:02:28.503>
    creator = 'kumaraditya'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46881
    keywords = ['patch']
    message_count = 3.0
    messages = ['414195', '414819', '414896']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'Mark.Shannon', 'eric.snow', 'JelleZijlstra', 'miss-islington', 'kj', 'kumaraditya']
    pr_nums = ['31616', '31805']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue46881'
    versions = ['Python 3.11']

    @kumaraditya303
    Copy link
    Contributor Author

    Statically allocate and initialize the latin1 characters. This *should* make iterating over a ascii strings faster as it avoids an atomic read in PyInterpreterState_GET() to get unicode state in get_latin1_char, makes get_latin1_char branchless and can be used in deepfreeze for identifiers.

    @kumaraditya303 kumaraditya303 added 3.11 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Feb 28, 2022
    @miss-islington
    Copy link
    Contributor

    New changeset 8714b6f by Kumar Aditya in branch 'main':
    bpo-46881: Statically allocate and initialize the latin1 characters. (GH-31616)
    8714b6f

    @kumaraditya303 kumaraditya303 added the performance Performance or resource usage label Mar 10, 2022
    @kumaraditya303 kumaraditya303 added the performance Performance or resource usage label Mar 10, 2022
    @Fidget-Spinner
    Copy link
    Member

    New changeset 54ab9ad by Jelle Zijlstra in branch 'main':
    bpo-46881: Fix refleak from #75797 (GH-31805)
    54ab9ad

    @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 interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants