You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import probablepeople while debugging should take less than a second. python main.py command should take less than a second to complete, with main.py as follows:
importprobablepeopleprint('hello world')
Current Behavior
import probablepeople while debugging in VScode takes about 20 seconds. python main.py command takes less than a second to complete.0
I also opened an issue on the ptvsd repository.
As they replied here:
I investigated this and unfortunately there's not much to be done in the debugger side (although it could be fixed in the probablepeople side and possibly on Python itself).
So, what I found out is that the slowdown happens when probablepeople does: from .ratios import ratios -- the file imported (probablepeople/ratios.py) appears to have just a giant dictionary literal with more than 154k lines.
The fix on probablepeople would be loading that data from a file instead of creating a giant dictionary
Expected Behavior
import probablepeople
while debugging should take less than a second.python main.py
command should take less than a second to complete, with main.py as follows:Current Behavior
import probablepeople
while debugging in VScode takes about 20 seconds.python main.py
command takes less than a second to complete.0Steps to Reproduce
Context (Environment)
What I tried
The text was updated successfully, but these errors were encountered: