[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
New submission from Nikolay Dyankov : The behaviour described below is not always reproduced. The attached test script simply tries to import a couple of dns-python modules, which in turn import other ones. No code is being executed. You expect it to exit for less than a second but it does not

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
Nikolay Dyankov added the comment: Stupid me :)) I must have really missed that. Still I don't understand why the read call takes 10 seconds to complete. -- status: pending -> open ___ Python tracker <http://bugs.python.or

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
Nikolay Dyankov added the comment: OK, I found the reason and it is the very fact of using /dev/random which would block if there aren't enough random numbers in queue. Maybe dns-python should be using /dev/urandom instead (though there might be reasons for not doing so). The myste