Skip to content
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

Use Electron ASAR to optimize file system access? #36997

Closed
auchenberg opened this issue Oct 26, 2017 · 8 comments
Closed

Use Electron ASAR to optimize file system access? #36997

auchenberg opened this issue Oct 26, 2017 · 8 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan perf perf-startup workbench-electron Electron-VS Code issues
Milestone

Comments

@auchenberg
Copy link
Contributor

Have we considered using Electron's ASAR to optimize file system access? I imagine this could especially help Windows launch performance.

Found this old write-up from N1/Atom: atom/atom#10163, but it seems that they have moved away from it. Is ASAR considered obsoletely? @Tyriar

@vscodebot vscodebot bot added the workbench label Oct 26, 2017
@Tyriar Tyriar self-assigned this Oct 26, 2017
@Tyriar Tyriar added install-update VS Code installation and upgrade system issues under-discussion Issue is under discussion for relevance, priority, approach labels Oct 26, 2017
@bpasero
Copy link
Member

bpasero commented Oct 30, 2017

@auchenberg we already benefit from the fact that most of our JS code is bundled into a single file. I think where a concept like ASAR could only help us is with node modules access which in our case is not bundled in any way.

/cc @alexandrudima who recently looked into ASAR when checking for file access on startup.

@alexdima
Copy link
Member

👍

@bpasero bpasero added workbench-electron Electron-VS Code issues and removed workbench labels Nov 15, 2017
@bpasero bpasero added perf perf-startup and removed install-update VS Code installation and upgrade system issues labels Nov 15, 2017
@alexdima alexdima added this to the November 2017 milestone Nov 16, 2017
@jens1o
Copy link
Contributor

jens1o commented Nov 21, 2017

What's the planned action here for November 2017? I'm seeing this everytime I update VSCode Insiders, that they are literally hundreds of thousands js files.

@bpasero bpasero removed their assignment Nov 22, 2017
@egamma egamma modified the milestones: November 2017, December 2017 Dec 4, 2017
@alexdima
Copy link
Member

Investigation results - #41353

@Tyriar Tyriar removed their assignment Jan 22, 2018
@alexdima
Copy link
Member

Pushed via #41353

@alexdima alexdima added feature-request Request for new features or functionality and removed under-discussion Issue is under discussion for relevance, priority, approach labels Jan 29, 2018
@alexdima
Copy link
Member

alexdima commented Jan 31, 2018

We have discovered at least 17 extensions that might make assumptions about the the core node_modules disk layout, so they might be broken by the change to ship them as node_modules.asar.

We need to communicate with these authors and understand their needs, plus give sufficient time to prepare for the change.

@alexdima
Copy link
Member

alexdima commented Feb 19, 2018

After downloading all our extensions, and running searches over them, there are only 8 affected extensions:

formulahendry.vscode-mysql (20,244 installs, ☑issue, ☑PR)
ms-azuretools.vscode-cosmosdb (39,149 installs, ☑issue, ☑PR)
ms-vscode.azure-account (345,174 installs, ☑issue)
MS-vsliveshare.vsliveshare (6,460 installs)
mshdinsight.azure-hdinsight (6,844 installs)
mshdinsight.azure-hdinsight/out/src/azure/authorization.js:32
  exports.keytar = require(`${vscode.env.appRoot}/node_modules/keytar`);
PeterJausovec.vscode-docker (2,307,698 installs, ☑issue, ☑PR)
satokaz.vscode-memo-life-for-you (374 installs, ☑issue)
vaniship.vue-ls (927 installs, ☑issue)

@yo1dog
Copy link

yo1dog commented Mar 28, 2018

One more to add to your list. This extension is used as a dependency by other extensions as wells:
siegebell.scope-info (701 installs)

https://github.com/siegebell/scope-info/blob/master/src/text-mate.ts#L2

Thanks

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan perf perf-startup workbench-electron Electron-VS Code issues
Projects
None yet
Development

No branches or pull requests

7 participants