diff options
author | Burke Libbey <burke@libbey.me> | 2017-06-01 14:28:51 -0400 |
---|---|---|
committer | Burke Libbey <burke@libbey.me> | 2017-07-17 13:17:45 -0400 |
commit | 0312a5c67e35b960e33677b5358c539f1047e4e1 (patch) | |
tree | 26f25351ba0e824a40b7e26ed08782942cae431f /railties/lib/rails/generators/rails/app/templates/config/boot.rb | |
parent | 9914964514fc43f6eadba06a47fccdf95b7806f7 (diff) | |
download | rails-0312a5c67e35b960e33677b5358c539f1047e4e1.tar.gz rails-0312a5c67e35b960e33677b5358c539f1047e4e1.tar.bz2 rails-0312a5c67e35b960e33677b5358c539f1047e4e1.zip |
Add bootsnap to default Gemfile:
Bootsnap precomputes load path resolution and caches ruby ISeq
and YAML parsing/compilation, reducing application boot time by
approximately 50% on supported configurations.
Diffstat (limited to 'railties/lib/rails/generators/rails/app/templates/config/boot.rb')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/boot.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/boot.rb b/railties/lib/rails/generators/rails/app/templates/config/boot.rb index 30f5120df6..b9e460cef3 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/boot.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/boot.rb @@ -1,3 +1,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. |