Commit fef3eed
committed
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 bc9e63d commit fef3eed
2 files changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | | - | |
1497 | 1496 | | |
1498 | 1497 | | |
1499 | | - | |
1500 | | - | |
| 1498 | + | |
| 1499 | + | |
1501 | 1500 | | |
1502 | 1501 | | |
1503 | 1502 | | |
| |||
1569 | 1568 | | |
1570 | 1569 | | |
1571 | 1570 | | |
1572 | | - | |
1573 | | - | |
| 1571 | + | |
| 1572 | + | |
1574 | 1573 | | |
1575 | 1574 | | |
1576 | 1575 | | |
| |||
1587 | 1586 | | |
1588 | 1587 | | |
1589 | 1588 | | |
1590 | | - | |
1591 | | - | |
| 1589 | + | |
| 1590 | + | |
1592 | 1591 | | |
1593 | 1592 | | |
1594 | 1593 | | |
| |||
1598 | 1597 | | |
1599 | 1598 | | |
1600 | 1599 | | |
1601 | | - | |
| 1600 | + | |
1602 | 1601 | | |
1603 | 1602 | | |
1604 | 1603 | | |
1605 | | - | |
| 1604 | + | |
1606 | 1605 | | |
1607 | 1606 | | |
1608 | 1607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1644 | 1644 | | |
1645 | 1645 | | |
1646 | 1646 | | |
1647 | | - | |
| 1647 | + | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | 1662 | | |
1666 | 1663 | | |
1667 | 1664 | | |
| |||
1705 | 1702 | | |
1706 | 1703 | | |
1707 | 1704 | | |
| 1705 | + | |
1708 | 1706 | | |
1709 | 1707 | | |
1710 | 1708 | | |
| |||
0 commit comments