#33502: Move Field attributes to class attributes.
-------------------------------------+-------------------------------------
     Reporter:  Collin Anderson      |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Keryn Knight (added)
 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Thanks for the idea! This is a bit similar to the
 [https://github.com/django/django/pull/15126 PR15126]. As far as I'm aware
 access to class attributes are slower than access to instance attributes,
 so we should benchmark proposed solution and check for performance
 regression. It'd also be nice to compare the memory usage.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33502#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.ead6c691aa3fc648176ea0fd6cf58866%40djangoproject.com.

Reply via email to