#5513: Last session refactoring vastly down Django performance
------------------------------------+---------------------------------------
Reporter: msaelices | Owner: msaelices
Status: assigned | Component: Contrib apps
Version: SVN | Resolution:
Keywords: slowness performance | Stage: Ready for checkin
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------------+---------------------------------------
Comment (by msaelices):
Replying to [comment:16 Fredrik Lundh <[EMAIL PROTECTED]>]:
> Ah, but now it got a lot harder to review ;-)
>
> Nits:
>
> * You don't need global in the method if you're only referring to the
engine variable (it's only needed if you're assigning to it).
>
> * Have you benchmarked the hasattr change?
I don't benchmarked this. Maybe {{{try...except}}} was better. But I found
a very little improvement for changing location of {{{__import__}}}
statement.
--
Ticket URL: <http://code.djangoproject.com/ticket/5513#comment:17>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---