From cbfeb8248c22efd6953f7d6b8e581590b5dc3327 Mon Sep 17 00:00:00 2001 From: Greg Cobb Date: Sun, 25 Jan 2026 23:35:51 -0800 Subject: [PATCH] Add Bootsnap gem to speed up app boot time - Also marginally speeds up tests --- Gemfile | 1 + Gemfile.lock | 3 +++ config/boot.rb | 1 + 3 files changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index 2d16898a74d..e6fb3a6348c 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source 'https://rubygems.org' gem 'addressable' gem 'allowy', '>= 2.1.0' +gem 'bootsnap', require: false gem 'clockwork', require: false gem 'cloudfront-signer' gem 'concurrent-ruby' diff --git a/Gemfile.lock b/Gemfile.lock index 9642e355ac3..8e81dcf41bd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -108,6 +108,8 @@ GEM benchmark (0.5.0) bigdecimal (4.0.1) bit-struct (0.17) + bootsnap (1.21.1) + msgpack (~> 1.2) builder (3.3.0) byebug (13.0.0) reline (>= 0.6.0) @@ -624,6 +626,7 @@ DEPENDENCIES addressable allowy (>= 2.1.0) azure-storage-blob! + bootsnap byebug cf-uaa-lib (~> 4.0.9) clockwork diff --git a/config/boot.rb b/config/boot.rb index 59220f783bd..3acbb4ea40d 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -5,3 +5,4 @@ $LOAD_PATH.unshift(File.expand_path('../middleware', __dir__)) require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup'