#24380: First locmem email sent in tests is absurdly slow.
-------------------------------------+-------------------------------------
     Reporter:  fletom               |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Core (Mail)          |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  email fqdn           |             Triage Stage:
  performance tests                  |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by claudep):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 We might argue that the real bug is your machine's `socket.getfqdn()`
 slowness. I'm not sure it's a good idea to strip the `locmem` backend (see
 #18861 about the reason this was introduced).
 I think the solution would be for you to mock `socket.getfqdn()` in your
 tests.

 Keeping it open for getting another opinion.

--
Ticket URL: <https://code.djangoproject.com/ticket/24380#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 [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/064.8fc657349058b6930e21bd93f971bbcb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to