#32945: Improve performance of HttpRequest._current_scheme_host()
-------------------------------------+-------------------------------------
     Reporter:  David Smith          |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  HTTP handling        |                  Version:  3.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid
 * component:  Uncategorized => HTTP handling
 * type:  Uncategorized => Cleanup/optimization


Comment:

 Thanks for this proposition, however I don't think it's worth changing. I
 don't see a significant improvement in Python 3.8:
 {{{
 .....................
 Current: Mean +- std dev: 29.4 us +- 1.9 us
 .....................
 Option One: Mean +- std dev: 28.9 us +- 0.7 us
 .....................
 Option Two: Mean +- std dev: 28.9 us +- 0.7 us
 .....................
 Option Three: Mean +- std dev: 29.2 us +- 1.5 us
 }}}
 and in Python 3.10 is even worse:
 {{{
 .....................
 Current: Mean +- std dev: 34.4 us +- 1.2 us
 .....................
 Option One: Mean +- std dev: 34.2 us +- 0.9 us
 .....................
 Option Two: Mean +- std dev: 34.7 us +- 0.9 us
 .....................
 Option Three: Mean +- std dev: 34.8 us +- 0.9 us
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32945#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.bfc02ee2ac1da8bcd40979c0538d98b6%40djangoproject.com.

Reply via email to