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

Add require: false to lesser used gems in our Gemfile #105

Open
dkniffin opened this issue May 7, 2018 · 3 comments
Open

Add require: false to lesser used gems in our Gemfile #105

dkniffin opened this issue May 7, 2018 · 3 comments
Labels
New Rails Config New functionality to be added to the generated Rails app

Comments

@dkniffin
Copy link
Contributor

dkniffin commented May 7, 2018

require: false tells bundler to install a gem, but not require it automatically (more info]. This is good for gems that you don't always want to include. For example, we only need to require rubocop when rubocop is running (not during the runtime for the app, or even during tests). By not requiring it, we should save some boot time of our apps

@dkniffin dkniffin changed the title Add require: false to lesser used gems Add require: false to lesser used gems in our Gemfile May 7, 2018
@prawl
Copy link
Contributor

prawl commented May 18, 2018

Interesting, do we have any numbers of the boot time saved by not requiring a gem?

@dkniffin
Copy link
Contributor Author

@prawl I don't have any metrics. We should do a little testing on this before we implement this

Also, jw, are you going to continue using/contributing to this now that you've left SB?

@dkniffin dkniffin added the New Rails Config New functionality to be added to the generated Rails app label Jun 5, 2018
@dkniffin
Copy link
Contributor Author

dkniffin commented Dec 5, 2018

This gem will be good for benchmarking the difference of this: https://github.com/schneems/derailed_benchmarks

@dkniffin dkniffin added racxob and removed racxob labels May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Rails Config New functionality to be added to the generated Rails app
Projects
None yet
Development

No branches or pull requests

2 participants