#37125: Use __new__ to sanitize TaskResult instead of __post_init__ to half
memory
usage
-------------------------------------+-------------------------------------
Reporter: Johannes Maron | Owner: zky
Type: | Status: closed
Cleanup/optimization |
Component: Tasks | Version: dev
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Johannes Maron):
I wrote a benchmark with a proper factory method, and I can confirm that
the `__post_init__` does NOT add any memory overhead. Hence I marked it as
invalid.
I'll keep looking, but I am out of ideas at this point and happy to see
that this is already very efficient.
--
Ticket URL: <https://code.djangoproject.com/ticket/37125#comment:12>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019e743b0770-e9d67489-3b52-473f-ad25-979238ef91ec-000000%40eu-central-1.amazonses.com.