Skip to content

matplotlib shouldn't call gc.collect() #3044

@kmike

Description

@kmike

Hi,

I'm working with a big IPython notebook with inline matplotlib charts and a lot of objects in memory. When a chart is drawn IPython closes the matplotlib figure; when this happens matplotlib calls gc.collect() here (there is an another possible gc.collect call here). This causes 5-10s delays, making interactive work uncomfortable.

What do you think about removing these calls, or maybe using less aggressive settings, like generation 0 or 1? In my case gc.collect(0) and gc.collect(1) are instant unlike gc.collect() or gc.collect(2).

I've fired a related issue to the IPython bug tracker: ipython/ipython#5795

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy