Skip to content

Micro optimization for range.index if step is 1 #86068

Description

@corona10
BPO 41902
Nosy @mdickinson, @vstinner, @methane, @serhiy-storchaka, @ammaraskar, @corona10, @pablogsal, @shihai1991
PRs
  • bpo-41902: Micro optimization for range.index if step is 1 #22479
  • bpo-41902: Add fast path for long_div if the divisor is one #22480
  • bpo-41902: Micro optimization for compute_item of range #22492
  • Files
  • bench_range_index.py
  • bench_range_step.py
  • bench_range_compute_item.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 2020-10-21.02:39:25.414>
    created_at = <Date 2020-10-01.13:42:45.832>
    labels = ['interpreter-core', '3.10', 'performance']
    title = 'Micro optimization for range.index if step is 1'
    updated_at = <Date 2020-10-21.02:39:25.414>
    user = 'https://github.com/corona10'

    bugs.python.org fields:

    activity = <Date 2020-10-21.02:39:25.414>
    actor = 'corona10'
    assignee = 'corona10'
    closed = True
    closed_date = <Date 2020-10-21.02:39:25.414>
    closer = 'corona10'
    components = ['Interpreter Core']
    creation = <Date 2020-10-01.13:42:45.832>
    creator = 'corona10'
    dependencies = []
    files = ['49482', '49483', '49485']
    hgrepos = []
    issue_num = 41902
    keywords = ['patch']
    message_count = 18.0
    messages = ['377752', '377753', '377755', '377757', '377759', '377762', '377765', '377770', '377773', '377775', '377786', '377794', '377795', '377796', '377799', '377806', '379178', '379183']
    nosy_count = 8.0
    nosy_names = ['mark.dickinson', 'vstinner', 'methane', 'serhiy.storchaka', 'ammar2', 'corona10', 'pablogsal', 'shihai1991']
    pr_nums = ['22479', '22480', '22492']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue41902'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions