#32948: Optimise Q combination and inversion
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  Nick Pope
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"19b866c254b54d904a942f34d662dfacd9005a77" 19b866c2]:
 {{{
 #!CommitTicketReference repository=""
 revision="19b866c254b54d904a942f34d662dfacd9005a77"
 Refs #32948 -- Added Node.__copy__().

 This allows the copy.copy() usage in the Q._combine() method to finish
 sooner, instead of having to fallback to using the __reduce_ex__(4)
 method.

 Thia also avoids having to fall into copy.copy() at in Q._combine(),
 when combining a Q() with another Q().

 Co-authored-by: Keryn Knight <[email protected]>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32948#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 on the web visit 
https://groups.google.com/d/msgid/django-updates/010701823ed38c3c-e7c2840a-f04a-49f7-9ade-b3b32c1cc5f0-000000%40eu-central-1.amazonses.com.

Reply via email to