Hello,
Does anyone know of an efficient way to get a count of the total
number of Python objects in CPython? The best solution I've been able
to find is len(gc.get_obje cts()) which unfortunately has to walk a C
linked list *and* creates a list containing all of the objects, when
all I need is an object count.
Thanks!
Does anyone know of an efficient way to get a count of the total
number of Python objects in CPython? The best solution I've been able
to find is len(gc.get_obje cts()) which unfortunately has to walk a C
linked list *and* creates a list containing all of the objects, when
all I need is an object count.
Thanks!
Comment