Title: no longer butt slow
Type: performance Stage: commit review
Components: Tests Versions: Python 3.2
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: richard Nosy List: ajaksu2, jerry.seutter, richard
Priority: low Keywords: patch

Created on 2008-03-19 14:50 by jerry.seutter, last changed 2010-08-03 06:39 by richard. This issue is now closed.

File name Uploaded Description Edit
test_smtplib_speedup.patch jerry.seutter, 2008-03-19 14:50 Changes to, rev 0 jerry.seutter, 2008-03-19 14:51 mock socket library that patch depends on
Messages (4)
msg64058 - (view) Author: Jerry Seutter (jerry.seutter) * (Python committer) Date: 2008-03-19 14:50
Changes only affect test files. before: 39.7s after: 0.8s

socket.getfqdn() calls were causing all the slowness.  Added a file to handle some tests.  For other tests that tested
both server side and client side of the smtp libraries, mocked out
socket.getfqdn() only.
msg87913 - (view) Author: Daniel Diniz (ajaksu2) (Python triager) Date: 2009-05-16 19:38
What platform is that? I'm sure I don't get such a long runtime for
test_smtplib on Linux. Maybe this was fixed by changes in socket or
smtplib itself?
msg112424 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2010-08-02 06:37
The patch to no longer applies since trunk is now py3k. I'm looking into it - and seeing whether the mock socket work I implemented for will have any common code. I'm hitting some "fun" areas of py3k-ness with bytes/str stuff in smtplib at the moment though ;-)
msg112556 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2010-08-03 06:39
Merged mock socket from and committed.
Date User Action Args
2010-08-03 06:39:59richardsetstatus: open -> closed
keywords: patch, patch
resolution: accepted
messages: + msg112556
2010-08-02 06:37:34richardsetkeywords: patch, patch
assignee: richard
messages: + msg112424
2010-07-31 23:17:17eric.araujosetkeywords: patch, patch
nosy: + richard
stage: commit review

versions: - Python 2.7
2009-05-16 19:38:31ajaksu2setversions: + Python 2.7, Python 3.2, - Python 2.6
nosy: + ajaksu2

messages: + msg87913

keywords: patch, patch
2008-03-19 14:51:50jerry.seuttersetkeywords: patch, patch
files: +
2008-03-19 14:50:48jerry.seuttercreate