HomePhorge

Disable ActiveSupport::Dependencies hooks.
5e7cce520315Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Disable ActiveSupport::Dependencies hooks.

The ActiveSupport::Dependencies code is loaded along with Rails, and hooks
into a bunch of the system. This consumes a surprisingly large amount of CPU
time watching for constants and generally acting to support unloading code.

This is related to the code that automatically requires libraries when the
constant is first accessed.

We don't - can't, since Rails is a soft dependencies - depend on that feature,
or anything related to it, we have no benefit from paying that horrible price.

Dropping this is actually a significant drop in CPU consumption - some 8
percent of the CPU cost in my testing is attributed directly to this feature.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU2c679f037e05: Merge branch 'bug/2.7.x/2888_fix_puppetdlock_deadlock' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU5e7cce520315: Disable ActiveSupport::Dependencies hooks. (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 19 2012, 2:11 AM