diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-13 21:34:22 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-13 21:34:22 +0000 |
commit | 22e70f069cec86f94e17774c9c2b84b1bb9cda6c (patch) | |
tree | 23848807bd8e719ca6e0029d06eb6c542162d64d /lib/puppet/parser | |
parent | 637cc71296f96fd1d5f2ca83aa7e20c73757f8dd (diff) | |
download | puppet-22e70f069cec86f94e17774c9c2b84b1bb9cda6c.tar.gz puppet-22e70f069cec86f94e17774c9c2b84b1bb9cda6c.tar.xz puppet-22e70f069cec86f94e17774c9c2b84b1bb9cda6c.zip |
Made a *huge* performance difference in storing hosts -- down from about 25 seconds per host to about 5 seconds on my machine. I will almost definitely still use forking or something to make this not affect the clients
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1191 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/interpreter.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 5ddd82829..ee447076f 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -251,11 +251,13 @@ module Puppet Puppet::Rails.init # We store all of the objects, even the collectable ones - Puppet::Rails::Host.store( - :objects => objects, - :host => client, - :facts => facts - ) + benchmark(:info, "Stored configuration for #{client}") do + Puppet::Rails::Host.store( + :objects => objects, + :host => client, + :facts => facts + ) + end # Now that we've stored everything, we need to strip out # the collectable objects so that they are not sent on |