Repository navigation
Commit a9a2252
Revert GC changes to "work_to_do" logic.
This reverts parts of the pythonGH-140262 change. The changes that affect the
tuple untracking are left unchanged. Revert the changes to the
calculation of the increment size, based on the "work_to_do" variable.
This causes cyclic garbage to be collected more quickly. Revert also
the change to test_gc.py, which was done because the expected GC
collection was taking longer to happen.
With the tuple untrack change, the performance regression as reported by
bug pythonGH-139951 is still resolved (work_to_do changes are not required).1 parent 57e0d17 commit a9a2252
2 files changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
1421 | 1420 | | |
1422 | 1421 | | |
1423 | | - | |
1424 | | - | |
| 1422 | + | |
| 1423 | + | |
1425 | 1424 | | |
1426 | 1425 | | |
1427 | 1426 | | |
| |||
1492 | 1491 | | |
1493 | 1492 | | |
1494 | 1493 | | |
1495 | | - | |
1496 | | - | |
| 1494 | + | |
| 1495 | + | |
1497 | 1496 | | |
1498 | 1497 | | |
1499 | 1498 | | |
| |||
1510 | 1509 | | |
1511 | 1510 | | |
1512 | 1511 | | |
1513 | | - | |
1514 | | - | |
| 1512 | + | |
| 1513 | + | |
1515 | 1514 | | |
1516 | 1515 | | |
1517 | 1516 | | |
| |||
1521 | 1520 | | |
1522 | 1521 | | |
1523 | 1522 | | |
1524 | | - | |
| 1523 | + | |
1525 | 1524 | | |
1526 | 1525 | | |
1527 | 1526 | | |
1528 | | - | |
| 1527 | + | |
1529 | 1528 | | |
1530 | 1529 | | |
1531 | 1530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1590 | 1590 | | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | | - | |
| 1593 | + | |
1594 | 1594 | | |
1595 | 1595 | | |
1596 | 1596 | | |
| |||
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | 1608 | | |
1612 | 1609 | | |
1613 | 1610 | | |
| |||
1650 | 1647 | | |
1651 | 1648 | | |
1652 | 1649 | | |
| 1650 | + | |
1653 | 1651 | | |
1654 | 1652 | | |
1655 | 1653 | | |
| |||
0 commit comments