Commit cdcacec
authored
pythongh-129201: Use prefetch in GC mark alive phase. (pythongh-129203)
For the free-threaded version of the cyclic GC, restructure the "mark alive" phase to use software prefetch instructions. This gives a speedup in most cases when the number of objects is large enough. The prefetching is enabled conditionally based on the number of long-lived objects the GC finds.1 parent 5fb019f commit cdcacec
File tree
2 files changed
+435
-42
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Python
2 files changed
+435
-42
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments