Improving Flask performance by hinting the Python GC about unreachable cycles #6128
Replies: 1 comment
|
No, this is not something we can help with. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
have recently tried to convince the Python community to add a feature to the Python GC which would accept hints that a certain group of objects is unreachable and can be deallocated. Such a feature would reduce the amount of time spent in full memory scan and improve P99 latency. The actual hints can be provided by developers or Claude Code.
See https://discuss.python.org/t/improving-python-garbage-collection-performance-by-providing-unreachable-cycles-hints/108307 for more details.
I need to test this first on a large scale complex Python environment, and Flask seems perfect for this. Can anyone from the Flask team with me on this? I can code the feature, but I will need a real-life environment to see the actual performance gain. If we can show definite improvement we can use it to push this feature to the Python team.
All reactions