Re: [Django] #12826: Use __slots__ for some simple objects.

4 views
Skip to first unread message

Django

unread,
May 5, 2011, 2:46:52 PM5/5/11
to django-...@googlegroups.com
#12826: Use __slots__ for some simple objects.
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
sebastian_noack | Status: new
Type: | Component: Uncategorized
Cleanup/optimization | Severity: Normal
Milestone: | Keywords:
Version: | Has patch: 1
Resolution: | Needs tests: 0
Triage Stage: Accepted | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 1 |
-------------------------------------+-------------------------------------
Changes (by patchhammer):

* needs_better_patch: 0 => 1
* easy: => 0


Comment:

introduce_slots.patch fails to apply cleanly on to trunk

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

Django

unread,
Mar 15, 2013, 3:57:56 AM3/15/13
to django-...@googlegroups.com
#12826: Use __slots__ for some simple objects.
--------------------------------------+------------------------------------
Reporter: sebastian_noack | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version:
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by aaugustin):

* component: Uncategorized => Core (Other)


--
Ticket URL: <https://code.djangoproject.com/ticket/12826#comment:8>

Django

unread,
Mar 31, 2020, 3:59:02 AM3/31/20
to django-...@googlegroups.com
#12826: Use __slots__ for some simple objects.
--------------------------------------+------------------------------------
Reporter: Sebastian Noack | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Core (Other) | Version:
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* resolution: => wontfix


Comment:

I think at this latter day a widespread switch to slots isn't actionable.
(We'd need a DEP, with an implementation plan and all the rest of it.)
I guess that's why there's been no progress made in many years.

Yes, in theory, there may be gains to be made. As such, individual
adjustments to specific classes can be assessed on a case-by-case basis.
Maybe that way we move forward.

I hope that makes sense.

--
Ticket URL: <https://code.djangoproject.com/ticket/12826#comment:9>

Reply all
Reply to author
Forward
0 new messages