Closed HiepPP closed 1 year ago
We are fairly certain that the problem that you are experiencing is caused by wix.vscode-import-cost and not Quokka. Your CPU profile shows a lot of lstat
calls to the file system. The trace is limited but we're guessing this is coming from the Import Cost package because Quokka doesn't make any of those calls.
Under the covers, when you install a dependency with Quokka, Quokka is just running npm install {packageName}
and does not do any other processing of the package during installation.
To confirm that the problem is not related to Quokka, can you please try the following:
wix.vscode-import-cost
and check whether you still have a problem when importing the file.You should not see any high CPU at this point in time
wix.vscode-import-cost
installed, uninstall or disable Quokka and then open the file with the same contents in VS Code. Make sure the focus is in the text editor containing the import
statement. In a separate terminal instance, install axios
using your package manager (e.g. npm install
).You should see high CPU when the package is installing
There are a number of seemingly related issues in the Wix Import Cost issue registry:
https://github.com/wix/import-cost/issues/274 https://github.com/wix/import-cost/issues/272 https://github.com/wix/import-cost/issues/266
We are going to close this issue. Suggest reporting to https://github.com/wix/import-cost/.
Import Cost
by Wix (ver v3.3.0), then import some library (import axios from "axios") high CPU load happened (over 100%). Here my cpuprofile, please check, thank you.quokka.txt