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

Slow startup time when using plugins #2238

Open
jeffmoss opened this issue Feb 7, 2023 · 2 comments
Open

Slow startup time when using plugins #2238

jeffmoss opened this issue Feb 7, 2023 · 2 comments

Comments

@jeffmoss
Copy link

jeffmoss commented Feb 7, 2023

What is the current behavior?

Currently if you install some plugins the CLI slows down considerably, for example the heroku-pg-extras plugin:

Before

heroku ps -a myapp  0.49s user 0.27s system 33% cpu 2.316 total

After

$ heroku plugins:install heroku-pg-extras
heroku ps -a myapp  1.33s user 1.32s system 41% cpu 6.377 total

What is the expected behavior?

I would expect some commands like ps would not load the entire plugin suite, saving time.

@k80bowman
Copy link
Contributor

Thank you for letting us know. We'll look into it.

@nlindley
Copy link

To add another data point, the heroku-kafka plugin adds nearly 5 seconds to startup. Here are some timings with no plugins, then just after adding heroku-kafka.

> time heroku version
heroku/9.2.1 darwin-arm64 node-v16.20.2

________________________________________________________
Executed in    1.04 secs      fish           external
   usr time  267.60 millis    0.13 millis  267.46 millis
   sys time  115.09 millis    2.15 millis  112.94 millis


> heroku plugins:install heroku-kafka
> time heroku version
heroku/9.2.1 darwin-arm64 node-v16.20.2

________________________________________________________
Executed in    5.91 secs      fish           external
   usr time  717.23 millis    0.11 millis  717.12 millis
   sys time  653.56 millis    1.17 millis  652.40 millis

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

No branches or pull requests

4 participants