On Mon, Jul 4, 2011 at 11:19 AM, Paul Miller <paulmi...@me.com> wrote: > Hi Yuri, > > I have not tested them for speed, but: > > - Named tuples have no instance dictionary, so their instances take no more > space than a regular tuple (for example, casting thousands of sql records to > named tuples has zero memory overhead). > - They also use C-speed attribute lookup using property() and itemgetter() > > I don’t really think that speed of collection (which is built into python > 2.6+) is much slower than dicts etc. > >
It would be easier just to benchmark the before and after and see. Using statistics we can easily then see what the effect is. http://ivoras.net/blog/tree/2009-12-02.using-ministat.html Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.