Commit 40657c7
committed
gh-142531: Fix free-threaded GC performance regression
If there are many untracked tuples, the GC will run too often, resulting
in poor performance. The fix is to include untracked tuples in the
"long lived" object count. The number of frozen objects is also now
included since the free-threaded GC must scan those too.1 parent bc9e63d commit 40657c7
File tree
2 files changed
+28
-3
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Python
2 files changed
+28
-3
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
378 | 391 | | |
379 | 392 | | |
380 | 393 | | |
| |||
1186 | 1199 | | |
1187 | 1200 | | |
1188 | 1201 | | |
1189 | | - | |
| 1202 | + | |
1190 | 1203 | | |
1191 | 1204 | | |
1192 | 1205 | | |
1193 | | - | |
1194 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1195 | 1216 | | |
1196 | 1217 | | |
1197 | 1218 | | |
| |||
1222 | 1243 | | |
1223 | 1244 | | |
1224 | 1245 | | |
1225 | | - | |
1226 | 1246 | | |
1227 | 1247 | | |
1228 | 1248 | | |
| |||
0 commit comments