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

load the apm commands lazily - greatly reduce the loading time #5

Merged
merged 2 commits into from
Jul 22, 2021

Conversation

aminya
Copy link
Member

@aminya aminya commented Jul 22, 2021

  • The apm --help command is now ~30% faster
  • @commandNames in CoffeeScript is translated to initClass in JavaScript, which is not a good idea.

@aminya aminya added the enhancement New feature or request label Jul 22, 2021
aminya added 2 commits July 22, 2021 17:52
- `@commandNames` in CoffeeScript is translated to verbose `initClass` in JavaScript

- This paves the way for making loading of the commands lazy.
The `apm --help` command is now ~30% faster
@aminya aminya merged commit 69d9efd into master Jul 22, 2021
@aminya aminya deleted the commands branch July 22, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant