Skip to content

_randbelow_with_getrandbits function inefficient with powers of two #81181

@kara71

Description

@kara71
mannequin
BPO 37000
Nosy @tim-one, @rhettinger, @mdickinson, @kara71
PRs
  • bpo-37000: Optimized randbelow for powers of two #13485
  • 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/rhettinger'
    closed_at = <Date 2019-05-23.15:22:36.299>
    created_at = <Date 2019-05-21.20:50:16.502>
    labels = ['3.8', 'library', 'performance']
    title = '_randbelow_with_getrandbits function inefficient with powers of two'
    updated_at = <Date 2019-05-23.15:47:29.395>
    user = 'https://github.com/kara71'

    bugs.python.org fields:

    activity = <Date 2019-05-23.15:47:29.395>
    actor = 'mark.dickinson'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2019-05-23.15:22:36.299>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2019-05-21.20:50:16.502>
    creator = 'Mathis Hammel'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37000
    keywords = ['patch']
    message_count = 6.0
    messages = ['343094', '343149', '343235', '343263', '343302', '343305']
    nosy_count = 4.0
    nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'Mathis Hammel']
    pr_nums = ['13485']
    priority = 'low'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue37000'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of lifeperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions