From 25a79d3dafabe1f5661d22c58b740d7d9a87eb8b Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Mon, 7 Sep 2026 16:20:21 +0900 Subject: [PATCH 2/3] Use bootsnap to speed up the boot. --- Gemfile | 2 ++ config/boot.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index beabb2e17..22403fc49 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,8 @@ source 'https://rubygems.org' ruby '>= 3.3.0', '< 4.1.0' gem 'rails', '8.1.3.1' +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', require: false gem 'rouge', '~> 5.0' gem "actionpack-xml_parser" gem 'roadie-rails', '~> 3.4.0' diff --git a/config/boot.rb b/config/boot.rb index af356f97a..98b6e5b92 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -19,3 +19,4 @@ ENV['RACK_QUERY_PARSER_PARAMS_LIMIT'] ||= '65536' 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. -- 2.55.0