gh-124771: Add the PYTHON_GC_PRESET env var.#124772
Conversation
vstinner
left a comment
There was a problem hiding this comment.
The name PYTHON_GC_PRESET was suggested.
Yeah, that's a better name. I've updated the PR. Still need the |
PYTHON_GC_STRAGEGY env var.PYTHON_GC_PRESET env var.
|
The PR is a draft. Does it mean that you're not sure if it's a good idea or not? Should it be reviewed or not yet? |
|
The code is not yet complete (need |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Python 3.15 got an incremental GC but it has been reverted before beta1. What's the status of this change?
Do you plan to open a discussion for this option? If not, I would suggest closing this old PR. |
This is still a WIP. We need to discuss if this is actually a good idea and what the options should be if it is.
There should be a
gc.set_preset()function, which is not yet implemented. Also need unit tests for this functionality. The initconfig logic is fairly complex and I'm not sure I did everything correct.📚 Documentation preview 📚: https://cpython-previews--124772.org.readthedocs.build/