#33502: Consider using a sparse-representation of fields.
-------------------------------------+-------------------------------------
Reporter: Collin | Owner: nobody
Anderson |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
This only adds attributes to a field's `__dict__` if it has a non default
value.
Similar to `__slots__` for `SafeString` #33465 this could theoretically
reduce memory usage, with less chance of breaking things compared to
actually using `__slots__`.
https://github.com/collinanderson/django/commit/41b2f0d6928b1a837df6d57169313d6b5f535a5d
I'm mostly just throwing this out there to add to the discussion and see
what people think. Totally cool if it doesn't get merged.
--
Ticket URL: <https://code.djangoproject.com/ticket/33502>
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/057.b25d62066d8a2021bfa7021e01b88f75%40djangoproject.com.