#5513: Last session refactoring vastly down Django performance
------------------------------------+---------------------------------------
   Reporter:  msaelices             |                Owner:  msaelices   
     Status:  assigned              |            Component:  Contrib apps
    Version:  SVN                   |           Resolution:              
   Keywords:  slowness performance  |                Stage:  Unreviewed  
  Has_patch:  1                     |           Needs_docs:  0           
Needs_tests:  0                     |   Needs_better_patch:  0           
------------------------------------+---------------------------------------
Comment (by Fredrik Lundh <[EMAIL PROTECTED]>):

 Very fast as in?  (from what I can tell, all you're saving is a property
 call.  it shouldn't be *that* expensive).
 
 Some additional micro-tuning for [6033]:
 
 * move the __import__ from process_request to module scope (settings won't
 change once we're up and running), or, if you want lazy loading, make it a
 module global and only import if None.
 
 * there's tons of duplicate attribute accesses in the fast path; don't
 forget that locals are cheap in Python!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5513#comment:9>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to