HomePhorge

(perf) Several small performance improvements
49393313141aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(perf) Several small performance improvements

This removes some "dev mistake" error checking, which reduces the
overhead of some common calls. It also makes some calls less common,
most notably it caches the environment of a node when it wasn't
explicitly set and it falls back to using Puppet.lookup(:environments).
This can drastically reduce the number of environment lookups in some
situations. For the resource_expression_spec.rb tests, this resulted in
a 0.6 second improvement (~3 seconds to ~2.4 seconds).

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Committed on Aug 18 2014, 10:49 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe6790b537852: (maint) Express language tests in puppet language
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPU49393313141a: (perf) Several small performance improvements (authored by Andrew Parker <andy@puppetlabs.com>).Aug 18 2014, 10:49 PM