This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Inline package metadata in main package.json file - #3917
Merged
Merged
Conversation
kevinsawicki
force-pushed
the
ks-packages-slug
branch
3 times, most recently
from
October 21, 2014 18:25
aebee49 to
15c7f57
Compare
It is now ~400k pretty printed and ~300k without
Saves another ~50k
These are generated in their own cache
This file is inlined in the main package.json
kevinsawicki
force-pushed
the
ks-packages-slug
branch
from
October 21, 2014 20:28
a4c93dd to
bf4ac1d
Compare
kevinsawicki
added a commit
that referenced
this pull request
Oct 21, 2014
Inline package metadata in main package.json file
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Atom currently ships with 77 bundled packages.
So each time a window is opened, 77
package.jsonfiles are read/parsed, ~25 package keymap JSON files are read/parsed, and ~25 package menu JSON files are read/parsed.In order to minimize the read/parse time during startup, inline all this content into the main
package.jsonfile under a special_atomPackageskey.For me this drops 25-50ms off of package load/activate time and should be more for slower machines and non-SSD drives.
Also this removes ~175 files/folders from the distribution which makes it a little leaner.