#35230: Cache ForeignObjectRel.get_accessor_name()
-------------------------------------+-------------------------------------
     Reporter:  Adam Johnson         |                    Owner:  nobody
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Adam Johnson):

 Thanks for the note Simon.

 Yes, it will be interesting to see the benchmark results. For a quick
 check, I ran a bunch of model tests with `./runtests.py --parallel 1
 "*models*` under [https://github.com/sharkdp/hyperfine hyperfine] and got
 the following results.

 Before:

 ```
 Time (mean ± σ):      2.745 s ±  0.031 s    [User: 2.628 s, System: 0.100
 s]
 Range (min … max):    2.697 s …  2.796 s    10 runs
 ```

 After:

 ```
 Time (mean ± σ):      2.727 s ±  0.021 s    [User: 2.611 s, System: 0.099
 s]
 Range (min … max):    2.699 s …  2.764 s    10 runs
 ```

 The mean is lower but a statistical T test calculates this as not
 statistically significant.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35230#comment:2>
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/0107018dbe00aeff-89075263-b441-43c6-9df3-81a11593dadb-000000%40eu-central-1.amazonses.com.

Reply via email to