Title: The test suite spends 20% of it's time in `gc.collect()` · Issue #6705 · matplotlib/matplotlib · GitHub
Open Graph Title: The test suite spends 20% of it's time in `gc.collect()` · Issue #6705 · matplotlib/matplotlib
X Title: The test suite spends 20% of it's time in `gc.collect()` · Issue #6705 · matplotlib/matplotlib
Description: Thu Jul 07 14:33:31 2016 matplotlib_cProfile_fulltest.pstat 192634679 function calls (182051956 primitive calls) in 345.231 seconds Ordered by: internal time List reduced from 9374 to 3 due to restriction <3> ncalls tottime percall cumti...
Open Graph Description: Thu Jul 07 14:33:31 2016 matplotlib_cProfile_fulltest.pstat 192634679 function calls (182051956 primitive calls) in 345.231 seconds Ordered by: internal time List reduced from 9374 to 3 due to rest...
X Description: Thu Jul 07 14:33:31 2016 matplotlib_cProfile_fulltest.pstat 192634679 function calls (182051956 primitive calls) in 345.231 seconds Ordered by: internal time List reduced from 9374 to 3 due to rest...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6705
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The test suite spends 20% of it's time in `gc.collect()`","articleBody":"```\nThu Jul 07 14:33:31 2016 matplotlib_cProfile_fulltest.pstat\n\n 192634679 function calls (182051956 primitive calls) in 345.231 seconds\n\n Ordered by: internal time\n List reduced from 9374 to 3 due to restriction \u003c3\u003e\n\n ncalls tottime percall cumtime percall filename:lineno(function)\n 2986 75.105 0.025 75.107 0.025 {gc.collect}\n 1250 19.139 0.015 19.139 0.015 {matplotlib._png.write_png}\n 2257 9.801 0.004 9.801 0.004 {matplotlib._png.read_png_int}\n```\n\nMostly this is due to [this call](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/testing/decorators.py#L75)\n\nPython is very memory effective because of reference counting (object is freed when refcount drops to zero even with `gc.disable`) and `gc.collect` only forces him to run cyclic garbage collector immediately. If it is not acceptable to to remove this call, can we have option to tuning this?\n","author":{"url":"https://github.com/Kojoley","@type":"Person","name":"Kojoley"},"datePublished":"2016-07-08T12:50:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6705/matplotlib/issues/6705"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e524e8dd-1e90-ed49-37db-08d3065a6683 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AA8:11304E:108B369:16CF35F:6A53BD85 |
| html-safe-nonce | f709765ba656f69f9433ee805658622cbb1bde51d566294eb91410fb169a5f4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUE4OjExMzA0RToxMDhCMzY5OjE2Q0YzNUY6NkE1M0JEODUiLCJ2aXNpdG9yX2lkIjoiODg3NzYwNDQ2ODExMzUyMjA1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bdae64758409752aaedb265b156d87da541752ae8e7fa213dfe76dec2ebaaae7 |
| hovercard-subject-tag | issue:164524144 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/6705/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d66af72cff9ff528dd69243b7d9fa7ebde64bdc1e423644967bf41e5c7b08aaa/matplotlib/matplotlib/issues/6705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d66af72cff9ff528dd69243b7d9fa7ebde64bdc1e423644967bf41e5c7b08aaa/matplotlib/matplotlib/issues/6705 |
| og:image:alt | Thu Jul 07 14:33:31 2016 matplotlib_cProfile_fulltest.pstat 192634679 function calls (182051956 primitive calls) in 345.231 seconds Ordered by: internal time List reduced from 9374 to 3 due to rest... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kojoley |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width