mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115)
This commit is contained in:
parent
c97d3af239
commit
c32dc47aca
35 changed files with 787 additions and 537 deletions
|
@ -394,7 +394,7 @@ class Stats:
|
|||
return result
|
||||
|
||||
def get_object_stats(self) -> dict[str, tuple[int, int]]:
|
||||
total_materializations = self._data.get("Object new values", 0)
|
||||
total_materializations = self._data.get("Object inline values", 0)
|
||||
total_allocations = self._data.get("Object allocations", 0) + self._data.get(
|
||||
"Object allocations from freelist", 0
|
||||
)
|
||||
|
@ -1094,8 +1094,7 @@ def object_stats_section() -> Section:
|
|||
Below, "allocations" means "allocations that are not from a freelist".
|
||||
Total allocations = "Allocations from freelist" + "Allocations".
|
||||
|
||||
"New values" is the number of values arrays created for objects with
|
||||
managed dicts.
|
||||
"Inline values" is the number of values arrays inlined into objects.
|
||||
|
||||
The cache hit/miss numbers are for the MRO cache, split into dunder and
|
||||
other names.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue