Skip to content

concurrent.futures.as_completed() memory inefficiency #71331

@grzgrzgrz3

Description

@grzgrzgrz3
BPO 27144
Nosy @brianquinlan, @pitrou, @vstinner, @zhangyangyu, @grzgrzgrz3, @robnester, @willvousden
PRs
  • bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object #1560
  • [3.6] bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object (GH-1560) #3266
  • Fix a concurrent.futures.as_completed() refleak previously introduced in bpo-27144 #3270
  • [3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (GH-3270) #3271
  • Files
  • reproduce.py
  • issue27144.patch
  • 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 2017-09-03.13:31:34.282>
    created_at = <Date 2016-05-28.13:25:35.704>
    labels = ['3.7', 'library', 'performance']
    title = 'concurrent.futures.as_completed() memory inefficiency'
    updated_at = <Date 2017-09-03.20:24:00.641>
    user = 'https://github.com/grzgrzgrz3'

    bugs.python.org fields:

    activity = <Date 2017-09-03.20:24:00.641>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-03.13:31:34.282>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2016-05-28.13:25:35.704>
    creator = 'grzgrzgrz3'
    dependencies = []
    files = ['43037', '43038']
    hgrepos = []
    issue_num = 27144
    keywords = ['patch']
    message_count = 15.0
    messages = ['266552', '288708', '293435', '293439', '293563', '301136', '301141', '301142', '301181', '301186', '301187', '301189', '301190', '301191', '301197']
    nosy_count = 8.0
    nosy_names = ['bquinlan', 'pitrou', 'vstinner', 'xiang.zhang', 'grzgrzgrz3', 'rnester', 'willvousden', 'Mark DePristo']
    pr_nums = ['1560', '3266', '3270', '3271']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue27144'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (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