Add Bootsnap gem to speed up app boot time #4803
Open
+5
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #4800 and #4802
Link to gem: https://github.com/rails/bootsnap
Without Bootsnap:
❯ time ./bin/cloud_controller ruby 3.2.10 (2026-01-14 revision a3a6d25788) [arm64-darwin25] Usage: cloud_controller [options] -c, --config [ARG] Configuration File -s, --secrets [ARG] Secrets File ./bin/cloud_controller 1.31s user 0.78s system 61% cpu 3.388 totalWith Bootsnap:
❯ time ./bin/cloud_controller ruby 3.2.10 (2026-01-14 revision a3a6d25788) [arm64-darwin25] Usage: cloud_controller [options] -c, --config [ARG] Configuration File -s, --secrets [ARG] Secrets File ./bin/cloud_controller 0.74s user 0.56s system 65% cpu 1.983 totalThanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:
A short explanation of the proposed change:
An explanation of the use cases your change solves
Links to any other associated PRs
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests