I am using mongo db for fast write to database, so that main application will not be affected at all.
For some reason importing pymongo takes much longer (~0.4 secs), while there are much larger packages which take much less time to import.
Is there a reason for this? Something to be done about it? Does it make sense to use sockets / writing to server instead, because of this time issue?
a = time.time()
import pymongo
print(time.time()-a) # 0.397
b = time.time()
import PyQt4
print(time.time()-b) # 0.006