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

map() instantiation time reducing by using PEP 590 vectorcall #87741

Closed
corona10 opened this issue Mar 21, 2021 · 2 comments
Closed

map() instantiation time reducing by using PEP 590 vectorcall #87741

corona10 opened this issue Mar 21, 2021 · 2 comments
Assignees
Labels
3.10 interpreter-core performance

Comments

@corona10
Copy link
Member

@corona10 corona10 commented Mar 21, 2021

BPO 43575
Nosy @rhettinger, @vstinner, @corona10
PRs
  • #24955
  • Files
  • map_bench.py
  • 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 = 'https://github.com/corona10'
    closed_at = <Date 2021-03-22.10:01:34.685>
    created_at = <Date 2021-03-21.03:25:03.475>
    labels = ['interpreter-core', '3.10', 'performance']
    title = 'map() instantiation time reducing by using PEP 590 vectorcall'
    updated_at = <Date 2021-03-22.10:01:34.684>
    user = 'https://github.com/corona10'

    bugs.python.org fields:

    activity = <Date 2021-03-22.10:01:34.684>
    actor = 'corona10'
    assignee = 'corona10'
    closed = True
    closed_date = <Date 2021-03-22.10:01:34.685>
    closer = 'corona10'
    components = ['Interpreter Core']
    creation = <Date 2021-03-21.03:25:03.475>
    creator = 'corona10'
    dependencies = []
    files = ['49896']
    hgrepos = []
    issue_num = 43575
    keywords = ['patch']
    message_count = 2.0
    messages = ['389210', '389293']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'vstinner', 'corona10']
    pr_nums = ['24955']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue43575'
    versions = ['Python 3.10']

    @corona10
    Copy link
    Member Author

    @corona10 corona10 commented Mar 21, 2021

    +-----------+------------------+----------------------+
    | Benchmark | map_bench_master | map_bench_vectorcall |
    +===========+==================+======================+
    | bench map | 151 ns | 116 ns: 1.30x faster |
    +-----------+------------------+----------------------+

    We already apply this feature for filter().
    No reason not to apply map().

    @corona10 corona10 added the 3.10 label Mar 21, 2021
    @corona10 corona10 self-assigned this Mar 21, 2021
    @corona10 corona10 added interpreter-core performance 3.10 labels Mar 21, 2021
    @corona10 corona10 self-assigned this Mar 21, 2021
    @corona10
    Copy link
    Member Author

    @corona10 corona10 commented Mar 22, 2021

    New changeset 86883d4 by Dong-hee Na in branch 'master':
    bpo-43575: Use PEP-590 vectorcall to speed up map() (GH-24955)
    86883d4

    @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 interpreter-core performance
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant