-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-134821: Automatically enable deferred reference counting on shared objects #134880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you run the pyperformance benchmark first?
Sorry for the delay! The pyperformance benchmarks are showing quite a hit in performance:
Considering this approach is pretty non-intrusive, I suspect automatic DRC just isn't feasible right now, because there will always be false positive "shared" objects no matter how we implement it, and those false positives will experience an apparent 30% hit in performance. I think that individual patches, like #134762, will turn out to work pretty well. |
This is a very rough POC. I think it's important that we don't cause performance regressions here, so I've implemented this alongside the garbage collector.
Does this approach make sense to everyone?