Statistical distribution of object size

Steven D'Aprano steve at REMOVEME.cybersource.com.au
Thu Sep 14 21:25:09 EDT 2006


On Wed, 13 Sep 2006 16:03:12 -0700, dbpokorny at gmail.com wrote:

> Hi,
> 
> In a typical heavy-use python application (say running Zope for
> dukehealth.org) what is the (statistical) distribution of the the size
> of objects? (i.e. start up server, stop time when it has been under
> load for a few hours, and put each object into a bucket marked with the
> number of bytes it is allocated, and maybe labeled with object type,
> say dict, list, other). Does anyone know of any research on this?
> 
> I would do this myself, but my website only has one user...

How do you get the memory size of each object?




-- 
Steven D'Aprano 




More information about the Python-list mailing list