Skip to content

Add length_hint parameter to list, dict, set constructors to allow efficient presizing #61540

Description

@alex
BPO 17338
Nosy @brettcannon, @rhettinger, @gpshead, @pitrou, @scoder, @vstinner, @giampaolo, @tiran, @benjaminp, @tpn, @alex, @asvetlov, @serhiy-storchaka
Files
  • preallocate.patch
  • listresize.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 = None
    closed_at = <Date 2014-05-03.23:17:55.023>
    created_at = <Date 2013-03-02.17:23:39.401>
    labels = ['performance']
    title = 'Add length_hint parameter to list, dict,\tset constructors to allow efficient presizing'
    updated_at = <Date 2014-05-03.23:17:55.022>
    user = 'https://github.com/alex'

    bugs.python.org fields:

    activity = <Date 2014-05-03.23:17:55.022>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-05-03.23:17:55.023>
    closer = 'rhettinger'
    components = []
    creation = <Date 2013-03-02.17:23:39.401>
    creator = 'alex'
    dependencies = []
    files = ['29315', '29325']
    hgrepos = []
    issue_num = 17338
    keywords = ['patch']
    message_count = 17.0
    messages = ['183332', '183339', '183349', '183353', '183360', '183361', '183365', '183366', '183473', '183536', '183545', '183552', '183558', '183580', '183589', '183592', '217843']
    nosy_count = 14.0
    nosy_names = ['brett.cannon', 'rhettinger', 'gregory.p.smith', 'pitrou', 'scoder', 'vstinner', 'giampaolo.rodola', 'christian.heimes', 'benjamin.peterson', 'trent', 'alex', 'asvetlov', 'neologix', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue17338'
    versions = ['Python 3.4']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      performancePerformance or resource usage

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions