Title: Performance degradation in 2.1.3 · Issue #605 · gitpython-developers/GitPython · GitHub
Open Graph Title: Performance degradation in 2.1.3 · Issue #605 · gitpython-developers/GitPython
X Title: Performance degradation in 2.1.3 · Issue #605 · gitpython-developers/GitPython
Description: Hi, The recent commit f1a82e4 has caused a significant performance degradation in the use of GitPython. As an example, one unit test that we have which performs operations on about 42 repositories normally runs in 6.7 seconds, but with t...
Open Graph Description: Hi, The recent commit f1a82e4 has caused a significant performance degradation in the use of GitPython. As an example, one unit test that we have which performs operations on about 42 repositories ...
X Description: Hi, The recent commit f1a82e4 has caused a significant performance degradation in the use of GitPython. As an example, one unit test that we have which performs operations on about 42 repositories ...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/605
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance degradation in 2.1.3","articleBody":"Hi,\r\n\r\nThe recent commit f1a82e4 has caused a significant performance\r\ndegradation in the use of GitPython. As an example, one unit\r\ntest that we have which performs operations on about 42\r\nrepositories normally runs in 6.7 seconds, but with the two new\r\ngc.collect() calls in f1a82e4 it now takes 24.2 seconds.\r\n\r\nThe gitdb.util.mman.collect() call does not seem to be expensive,\r\nonly gc.collect().\r\n\r\nIt's worth noting that most objects in python are freed by use of\r\nreference counting, while gc.collect() invokes the garbage\r\ncollector, which is only needed to free objects with reference\r\ncycles. Normally, the garbage collector runs periodically and\r\ndoes not need to be explicitly invoked.\r\n\r\nSince the garbage collector should only be effective on objects\r\nwhich no longer have references from active frames, it's not\r\nclear why these two calls to gc.collect() are required. It would\r\nbe nice to know if there are any other ways to address what they\r\nare attempting to fix. If they truly are required in some\r\ncircumstances, it would be good to know what those are and if\r\nthere are cases where we do not need to invoke the expense. And\r\nif they are not required, we should remove them.\r\n\r\nThanks!\r\n","author":{"url":"https://github.com/jeblair","@type":"Person","name":"jeblair"},"datePublished":"2017-03-08T18:54:59Z","url":"https://github.com/gitpython-developers/GitPython/issues/605"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c77f934a-5812-17be-a231-ce3011fa788a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E30A:2BB4ED:B787D3:FBB243:6B00AD2C |
| html-safe-nonce | 921524be52eb531f4a301ec256044f9716a6e594755b3551744272882ef4d42a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzBBOjJCQjRFRDpCNzg3RDM6RkJCMjQzOjZCMDBBRDJDIiwidmlzaXRvcl9pZCI6Ijc0NDY3NTI5NzU1MDQwNTk2OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 852a13b01391a27e60a7e5d4ef8b0c37bb80e9fe3ab0ec07f741682e7b80ecdb |
| hovercard-subject-tag | issue:212823486 |
| 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/gitpython-developers/GitPython/605/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11d68a5e170973ce6c6834de588affa7c687773e372e4960362e695853ce23a8/gitpython-developers/GitPython/issues/605 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11d68a5e170973ce6c6834de588affa7c687773e372e4960362e695853ce23a8/gitpython-developers/GitPython/issues/605 |
| og:image:alt | Hi, The recent commit f1a82e4 has caused a significant performance degradation in the use of GitPython. As an example, one unit test that we have which performs operations on about 42 repositories ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeblair |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 729d8cda69b3d267995675dfbf89ff27ccf61bf6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width