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

Commit 9db1abb

Browse files
wallesArcanemagus
authored andcommitted
Improve Atom startup time (#95)
Before this change, activation was done on Atom startup, whether or not you actually had any Ruby files open. With this change in place, we postpone activation until the Atom Ruby grammar's first use. This improves startup time of my Atom by about 20ms, thus fixing one of the top startup time offenders according to TimeCop. For some frame of reference, I have 87 packages installed, and Timecop lists all packages with startup times above 5ms.
1 parent 6a2a293 commit 9db1abb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"engines": {
99
"atom": ">0.180.0"
1010
},
11+
"activationHooks": ["language-ruby:grammar-used"],
1112
"providedServices": {
1213
"linter": {
1314
"versions": {

0 commit comments

Comments
 (0)