microsoft/debugpy

Importing pypinyin takes too much time (around 10min)

LifeJustDLC opened this issue · 1 comments

Importing pypinyin takes a long time (about 10 minutes) when starting the debugger in vscode, with slightly high CPU usage (20%).

It works fine with python ./script.py and import in REPL. Not sure if it's the vscode debugger's problem, anyway, issues have been filed on both sides.

Tested on mac and it works fine, the problem only occurs on windows.

(I suspected conda and venv, but it's still the same after removing them)

python: 3.10~3.12
windows 10
vscode python debugger 2024.6.0
pypinyin 0.51.0

This should be investigated in debugpy. Moving this to debugpy.