Commit 5d25f2b
authored
Keeping an account of allocated blocks slows down _PyObject_Malloc()
and _PyObject_Free() by a measureable amount. Have
_Py_GetAllocatedBlocks() iterate over the arenas to sum up the
allocated blocks for pymalloc.
1 parent f117d87 commit 5d25f2b
2 files changed
Lines changed: 25 additions & 7 deletions
File tree
- Misc/NEWS.d/next/Core and Builtins
- Objects
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | | - | |
| 1209 | + | |
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
1214 | | - | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1215 | 1232 | | |
1216 | 1233 | | |
1217 | 1234 | | |
| |||
1622 | 1639 | | |
1623 | 1640 | | |
1624 | 1641 | | |
1625 | | - | |
1626 | 1642 | | |
1627 | 1643 | | |
1628 | 1644 | | |
1629 | 1645 | | |
1630 | 1646 | | |
1631 | | - | |
| 1647 | + | |
1632 | 1648 | | |
1633 | 1649 | | |
1634 | 1650 | | |
| |||
1644 | 1660 | | |
1645 | 1661 | | |
1646 | 1662 | | |
1647 | | - | |
1648 | 1663 | | |
1649 | 1664 | | |
1650 | 1665 | | |
1651 | 1666 | | |
1652 | 1667 | | |
1653 | | - | |
| 1668 | + | |
1654 | 1669 | | |
1655 | 1670 | | |
1656 | 1671 | | |
| |||
1899 | 1914 | | |
1900 | 1915 | | |
1901 | 1916 | | |
1902 | | - | |
1903 | 1917 | | |
1904 | 1918 | | |
1905 | 1919 | | |
| 1920 | + | |
1906 | 1921 | | |
1907 | 1922 | | |
1908 | 1923 | | |
| |||
0 commit comments