-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow spawn from ext host process when built from sources #132654
Comments
Confirmed that the behavior is different in locally built vs MS version of VS Code. If you have extension like this (derived from yo template), time on OSS vs time on MS version is different and consistent with what we have above:
|
You can try newer version of patch from libuv/libuv#3257 and build electron.
Unfortunately it is not quite easy to do it and not worth the effort for short-term. |
@deepak1556 Ok. Will do it. Thanks for your help! |
@deepak1556 BTW, which patch do you use in the latest vscode? (may be there're other patches as well) |
Current stable is based on Electron 13 which uses the patch attached in electron/electron#26143 (comment) . It is not very different from the libuv PR, just adapted to Electron 13 branch |
@deepak1556 Thanks, I will! |
@deepak1556 One more question if you don't mind. How do you build it? I assume you have some hidden repo, but electron has only cricle ci scripts. Do you have any other scripts to run it on github or azure? Also, I assume that you plug your custom build here: https://github.com/microsoft/vscode/blob/main/build/lib/electron.ts#L204 Is there an easy way to plug a locally built electron in there? |
Yes our custom build uses Azure pipelines. The scripts are not generic enough to share for external usage.
You can provide a new repo value for repo via |
Does this issue occur when all extensions are disabled?: Yes/No
We noticed that vscode which is built locally, started to work much slower than previous version. Profiling shown that spawns take much more time than before (15ms vs 300-1500ms). One of the most notable places is getHead in the git extension.
Steps to Reproduce:
On 1.55, it took much less (~15ms). It seems that it's caused by libuv/libuv#3050 which was reverted due to broken tests (libuv/libuv#3050 (comment)). It seems that vscode uses patched version of electron (is it true?). Is it possible that you share the patched electron with the community?
cc @deepak1556
The text was updated successfully, but these errors were encountered: