#12826: Use __slots__ for some simple objects.
-----------------------------+----------------------------------------------
 Reporter:  sebastian_noack  |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Uncategorized    |     Version:            
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  1                |  
-----------------------------+----------------------------------------------
 I have started to introduce __slots__ for some simple object. See attached
 patch. There are probably more places where __slots__ would make sense.
 But I have started with django.utils.datastructures.* and
 django.utils.tree.Node and subclasses of them. Slots make object creation
 faster and use less memory than object dicts. They are used to improve
 performance on a lot of python's builtin types and can be used in own code
 for simple objects.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12826>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to