Archive for the tag 'memory'

The secret behind memory allocation in Python

I’ve been looking for this for a while !! Why this f***ing Python process eat so much memory ? I freed all the objects, and don’t have any circular references ..
Every advanced Python programmer need to read this carefully.
On the other side, i’m looking for a good shared memory module for Py ? Do you [...]

admin November 5th, 2004

Garbage Collector statistics

Have you ever wondering what is in the gabarge collector ? This little piece
of code may help :)
import string,gc

def debugGC(threshold=10):
d = {}
print “*” * 80
for o in gc.get_objects():
try:
[...]

admin August 22nd, 2003