Skip to content

Commit db71173

Browse files
authored
Add Bootsnap gem to speed up app boot time (#4803)
- Also marginally speeds up tests
1 parent 7cfa5d9 commit db71173

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
22

33
gem 'addressable'
44
gem 'allowy', '>= 2.1.0'
5+
gem 'bootsnap', require: false
56
gem 'clockwork', require: false
67
gem 'cloudfront-signer'
78
gem 'concurrent-ruby'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ GEM
101101
benchmark (0.5.0)
102102
bigdecimal (4.0.1)
103103
bit-struct (0.17)
104+
bootsnap (1.21.1)
105+
msgpack (~> 1.2)
104106
builder (3.3.0)
105107
byebug (13.0.0)
106108
reline (>= 0.6.0)
@@ -619,6 +621,7 @@ DEPENDENCIES
619621
addressable
620622
allowy (>= 2.1.0)
621623
azure-storage-blob!
624+
bootsnap
622625
byebug
623626
cf-uaa-lib (~> 4.0.9)
624627
clockwork

config/boot.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
$LOAD_PATH.unshift(File.expand_path('../middleware', __dir__))
66

77
require 'bundler/setup' # Set up gems listed in the Gemfile.
8+
require 'bootsnap/setup'

0 commit comments

Comments
 (0)