Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Inline package metadata in main package.json file - #3917

Merged
kevinsawicki merged 22 commits into
masterfrom
ks-packages-slug
Oct 21, 2014
Merged

kevinsawicki merged 22 commits into
masterfrom
ks-packages-slug

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

Atom currently ships with 77 bundled packages.

So each time a window is opened, 77 package.json files 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.json file under a special _atomPackages key.

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.

@kevinsawicki
kevinsawicki force-pushed the ks-packages-slug branch 3 times, most recently from aebee49 to 15c7f57 Compare October 21, 2014 18:25
kevinsawicki added a commit that referenced this pull request Oct 21, 2014
Inline package metadata in main package.json file
@kevinsawicki
kevinsawicki merged commit 45c05d3 into master Oct 21, 2014
@kevinsawicki
kevinsawicki deleted the ks-packages-slug branch October 21, 2014 20:49
@benogle benogle mentioned this pull request Oct 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant