chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Node::ImmutableArray#short_circuit_attr_levels
This can be set to e.g. [ :@default ] by the parent container to cause this container to only use the default level and to bypass deep merging (the common case is either default-level or automatic-level and we aren't doing any deep merging). Right now it "optimized" for the case where we're no longer merging anything and only tracking a single level, and setting this to anything other than a size=1 array would behave in a broken fashion. That could be fixed, but the perf boost would likely not be that large in the typical case.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/node/immutable_collections.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Node--ImmutableArray-short_circuit_attr_levels-for-pr
# Commit to gitgit add lib/chef/node/immutable_collections.rbgit commit -m "better docs for Chef::Node::ImmutableArray#short_circuit_attr_levels"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Node--ImmutableArray-short_circuit_attr_levels-for-pr
hub pull-request
# Celebrate!