diff options
author | Markus Roberts <Markus@reality.com> | 2010-07-18 13:25:43 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-18 19:41:01 -0700 |
commit | dd03ac9fa29fce36eb64a5f831be8757f2f96f5c (patch) | |
tree | 16738f07b08bd1069b3e55ce0468a51220ede02a /spec/unit/parser/compiler_spec.rb | |
parent | 4ce33fde2c0de19d03bf5d951858dd3ea4fd52a6 (diff) | |
download | puppet-dd03ac9fa29fce36eb64a5f831be8757f2f96f5c.tar.gz puppet-dd03ac9fa29fce36eb64a5f831be8757f2f96f5c.tar.xz puppet-dd03ac9fa29fce36eb64a5f831be8757f2f96f5c.zip |
Partial fix for #4278 -- the performance aspects
unevaluated_resources was a performance bottleneck and was doing a great deal
of unneeded work, such as searching for the type of evaluated resources before
ignoring them because only unevaluated resources were wanted.
This patch is behaviour neutral but gives a 2-3x speedup for compiles with many
defined resources.
Diffstat (limited to 'spec/unit/parser/compiler_spec.rb')
-rwxr-xr-x | spec/unit/parser/compiler_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb index a3fe56c0e..e8c06dd0b 100755 --- a/spec/unit/parser/compiler_spec.rb +++ b/spec/unit/parser/compiler_spec.rb @@ -23,7 +23,7 @@ class CompilerTestResource @evaluated end - def builtin? + def builtin_type? @builtin end |