-
Notifications
You must be signed in to change notification settings - Fork 49
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
Delete never used cli.rb #91
base: master
Are you sure you want to change the base?
Conversation
cli.rb is loaded by pry at startup, looking for cli options to add to pry command options. This file is slowing pry startup by 50%, but it's never used. It's ok to not exist, since pry checks it: https://github.com/pry/pry/blob/master/lib/pry/plugins.rb#L38 The same was proposed to pry-byebug
I don't remember why it was added, but I guess there's a good reason for it. How did you figure out that it slows the startup time by 50%? |
I think it was to ensure that interception loaded ahead of time. In todays modern times we can probably rely on bundler rather than pry to do this for us. |
@kyrylo I just copy/paste from byebug. Rescue add about 0.1s to load time on my machine. |
So without requiring |
@kyrylo On my machine, pry takes 0.8s to load without plugins. With only rescue, it takes 0.9s. |
Just to make it clear, cli.rb is required by pry even if you'll not use it. |
@neves The fact that it does a |
@ConradIrwin, actually pry doesn't require if not exists: |
cli.rb is loaded by pry at startup, looking for cli options to add to pry command options.
This file is slowing pry startup by 50%, but it's never used.
It's ok to not exist, since pry checks it:
https://github.com/pry/pry/blob/master/lib/pry/plugins.rb#L38
The same was proposed to pry-byebug:
deivid-rodriguez/pry-byebug#76