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

Clear lists and dicts freelist in gc.collect() #57598

Closed
pitrou opened this issue Nov 12, 2011 · 4 comments
Closed

Clear lists and dicts freelist in gc.collect() #57598

pitrou opened this issue Nov 12, 2011 · 4 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage

Comments

@pitrou
Copy link
Member

pitrou commented Nov 12, 2011

BPO 13389
Nosy @pitrou
Files
  • listfreelist.patch
  • listdictfreelist.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 2011-11-14.23:14:09.742>
    created_at = <Date 2011-11-12.23:17:14.372>
    labels = ['interpreter-core', 'performance']
    title = 'Clear lists and dicts freelist in gc.collect()'
    updated_at = <Date 2011-11-14.23:14:09.741>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2011-11-14.23:14:09.741>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-11-14.23:14:09.742>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2011-11-12.23:17:14.372>
    creator = 'pitrou'
    dependencies = []
    files = ['23670', '23673']
    hgrepos = []
    issue_num = 13389
    keywords = ['patch']
    message_count = 4.0
    messages = ['147530', '147533', '147535', '147636']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue13389'
    versions = ['Python 3.3']

    @pitrou
    Copy link
    Member Author

    pitrou commented Nov 12, 2011

    Complete gc collections currently clear all freelists, except for the freelist of list objects. Attached patch fixes the omission.

    @pitrou pitrou added interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage labels Nov 12, 2011
    @pitrou
    Copy link
    Member Author

    pitrou commented Nov 12, 2011

    Dicts also have a freelist which isn't freed either. New patch attached.

    @pitrou
    Copy link
    Member Author

    pitrou commented Nov 12, 2011

    Fix the return values and add documentation.

    @pitrou pitrou changed the title Clear lists freelist in gc.collect() Clear lists and dicts freelist in gc.collect() Nov 12, 2011
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Nov 14, 2011

    New changeset 910986542a75 by Antoine Pitrou in branch 'default':
    Issue bpo-13389: Full garbage collection passes now clear the freelists for
    http://hg.python.org/cpython/rev/910986542a75

    @pitrou pitrou closed this as completed Nov 14, 2011
    @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
    interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant