Skip to content

Keep asar archive's file opened in the archive's whole life time - #1642

Merged
zcbenz merged 3 commits into
masterfrom
archive-update-header
May 11, 2015
Merged

zcbenz merged 3 commits into
masterfrom
archive-update-header

Conversation

@zcbenz

@zcbenz zcbenz commented May 11, 2015

Copy link
Copy Markdown
Contributor

This PR keeps asar archive opened so we don't need to reopen it for every fs operation on it, we can have potential performance boost from it.

As a side effect, when the asar archive is overwritten or deleted due to auto-updating or something else, Electron will still read the original archive. Fixes #1219.

zcbenz added a commit that referenced this pull request May 11, 2015
Keep asar archive's file opened in the archive's whole life time
@zcbenz
zcbenz merged commit e5380fd into master May 11, 2015
@zcbenz
zcbenz deleted the archive-update-header branch May 11, 2015 04:07
@valtersboze

Copy link
Copy Markdown

any way to set a flag that asar archive can be overwritten (for my custom electron build) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-read asar package on page reload

2 participants