Memory ?

Shagshag13 shagshag13 at yahoo.fr
Fri Jul 5 03:24:42 EDT 2002


Hello,

i'm still looking for a way to check which are the best ways to save memory because i work on many GB with float, etc. so is there a
way to check how many bytes needs an object, a tuple, a list, a dict of objects and so on ? (something like itemsize for array - in
fact array should be great if they weren't boxed)

i also have troubles like :

- which way is the best to handle a sequential dictionary : having 2 dicts, one for the order and other for my data ? but i think,
it's better to use a list to handle order an a dict for data (like in seqdict)

- how many subclassing can i use ? (is this time or memory consuming in any ways ?)

and so on...

i didn't find such answers in PEP, etc. or maybe i missed them,

thanks in advance,

s13.





More information about the Python-list mailing list