Skip to content

Automatically eager load all integrations when in Rails context#366

Open
casperisfine wants to merge 1 commit into
activemerchant:masterfrom
casperisfine:eager-loading
Open

Automatically eager load all integrations when in Rails context#366
casperisfine wants to merge 1 commit into
activemerchant:masterfrom
casperisfine:eager-loading

Conversation

@casperisfine
Copy link
Copy Markdown
Contributor

In production mode it's preferable to load all the code upfront even if it means loading some code that won't be used.

This is because loading the code on demand cause the first request to use it to be slower, and to flush various VM caches such as the global constant cache. It also degrade Copy on Write performance for forking setups.

In production mode it's preferable to load all the code upfront
even if it means loading some code that won't be used.

This is because loading the code on demand cause the first request
to use it to be slower, and to flush various VM caches such
as the global constant cache. It also degrade Copy on Write
performance for forking setups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants