dicts vs classes

Marco Wahl mw at visenso.de
Tue Jul 25 06:10:07 EDT 2006


"Guyon Morée" <guyon.moree at gmail.com> writes:

> I'm using simple classes as a container of named values and I'm
> instantiating a lot of them in a very short time.
> 
> i was wondering if there is any benefit in using dicts instead from a
> performance/memory usage point of view?

I recommend you to measure the time and memory usage
for the two alternatives.  That could give you the
answer you want.


HTH
-- 
Marco Wahl
http://visenso.com



More information about the Python-list mailing list