Branch: refs/heads/master
Home: https://github.com/django/django
Commit: ff723d894d9272ea721d1996432ffc806c2b8180
https://github.com/django/django/commit/ff723d894d9272ea721d1996432ffc806c2b8180
Author: Anssi Kääriäinen <[email protected]>
Date: 2013-09-14 (Sat, 14 Sep 2013)
Changed paths:
M django/db/models/sql/compiler.py
M django/db/models/sql/query.py
Log Message:
-----------
Fixed #20950 -- Instantiate OrderedDict() only when needed
The use of OrderedDict (even an empty one) was surprisingly slow. By
initializing OrderedDict only when needed it is possible to save
non-trivial amount of computing time (Model.save() is around 30% faster
for example).
This commit targetted sql.Query only, there are likely other places
which could use similar optimizations.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/5234a293cf682_44748add4c5493f%40hookshot-fe3-pe1-prd.aws.github.net.mail.
For more options, visit https://groups.google.com/groups/opt_out.