ChristianKohler/PathIntellisense

Causing high cpu load on Apple silicon

captain-rocket opened this issue · 5 comments

This extension is causing high cpu load on Apple silicon

I work remotely on a dev server (via the official Remote SSH plugin) and this causes loads so high that the server hangs! The number of files it is indexing is large and the rg (ripgrep) process just spins out of control!

Hey @captain-rocket and @deanhouseholder thank you for reporting the issue.

I can't reproduce it on a M1 Mac. Could you help with some more info. Do you have any logs? How do you know it is this extension causing the high cpu load?

@deanhouseholder The extension is not indexing any files and is not running ripgrep. How did you isolate the issue to PathIntellisense? Could I reproduce it?

When I disabled this extension, the load immediately dropped. This is on a linux VM. With VSCode connected via ssh to the dev server (via Remote-SSH), I ssh into the dev server and see all of the .vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node processes (using ps -ef). The ones that are hogging server resources are the ones running rg to index all the files in the project (which is large).

Hey @deanhouseholder, one idea I have which could cause this issue is the tsconfig indexing. Do you have a tsconfig? If you have one, could you try the following things:

  1. Remove the tsconfig then activate PathIntellisense -> Check if this solves the issue
  2. If nr.1 solved the issue, re-add tsconfig but remove the baseUrl property, then active PathIntellisense again

Thx for debugging the issue 🙏

My project doesn't use typescript, so no tsconfig files. This particular one is a very large vanilla PHP project.