Skip to content

gh-129201: Use prefetch in GC mark alive phase. #129203

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

Merged
merged 12 commits into from
Feb 5, 2025
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The free-threaded version of the cyclic garbage collector has been optimized to
conditionally use CPU prefetch instructions during the collection. This can
reduce collection times by making it more likely that data is in the CPU cache
when it is needed. The prefetch instructions are enabled if the number of
long-lived objects (objects surviving a full collection) exceeds a threshold.
Loading
Loading