I'm using https://github.com/DuyguA/DEMorphy . I run the following code with a python3.7 interpreter.
import time
start = time.time()
from demorphy import Analyzer
end = time.time()
print(end-start)
The output is
0.46335792541503906
When run with the Pycharm Debugger the output is
/home/user/virtualenvs/demorphy_test/bin/python3 /home/user/programs/pycharm-community-2019.2.1/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 57954 --file /home/user/demorphy_test/test.py
713.0500545501709
When run with the Visual Studio Code Debugger the output is
/home/user/virtualenvs/ptdev/bin/python /home/user/.vscode/extensions/ms-python.python-2019.10.41019/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 42604 /home/user/demorphy_test/test.py
693.3676333427429
Terminated
When run with the Eclipse Pydev Debugger the output is
pydev debugger: starting (pid: 26462)
706.7083044052124
Why does the import statement take so long when run with the debugger? How can I make it run faster?
To install the dawg library which demorphy depends on https://github.com/pytries/DAWG/issues/31 is necessary.