Skip to content

Conversation

@71FIL
Copy link

@71FIL 71FIL commented Jul 27, 2021

I am proposing this to address issue #61. It is proposed as a draft as I was considering an alternative implementation.

The proposed change here adds the gc_collect_gen argument to all functions which end up calling gc.collect().

An alternative implementation would be to add a single configuration function to objgraph, eg. set_gc_collect_gen, to set a global variable in objgraph which would then be used in all calls to gc.collect().

I am assuming that this will become version 3.6.0.

Let me know what you think!

@71FIL 71FIL marked this pull request as ready for review August 1, 2021 19:42
Copy link
Owner

@mgedmin mgedmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delayed reply. (I was on vacation, which unfortunately was too short to resolve my burnout issues.)

I like this. Some of the docstrings are missing the .. versionchanged:: directive mentioning the new parameter. I mentioned some of them, but there are more where I ran out of time.

If that's fixed, I'll merge this right away.

(I wouldn't have liked the global parameter.)

@71FIL
Copy link
Author

71FIL commented Aug 12, 2021

No worries! Sorry to hear about the burnout issues...

I think I covered them all.

Let me know if there is anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants