Edit: Pylance seems to be much better at this and has so far resolved all problems with the previous Python language server from Microsoft.
I\'m using VS Code an
I had the same problem with Python on VS Code. In my case, disabling Jedi for IntelliSence made things faster.
Just set "python.jediEnabled": false in the options.
As memory is not a problem for me, I also enabled code analysis to keep parser trees in memory: "python.analysis.memory.keepLibraryAst": true