On Fri, 2010-09-17 at 13:46 +0200, Nikolay Sturm wrote: > Hi guys, > > testing cucumber-puppet with Puppet 2.6.1 I see a massive performance > degradation where a testsuite takes over 5 minutes to run as compared to > about 40s with Puppet 0.25.5. I suspect this is (at least partially) due > to changes in file parsing. With Puppet 0.25.5 I see .pp files being > loaded only once at the beginning of my testsuite, but with Puppet 2.6.1 > I see .pp files being reloaded with every scenario.
Lots of things changed between 0.25 and 2.6 regarding the compiler. It is possible that the changes we did in P::Node::Environment#known_resource_types is failing for your use case and you end up calling "perform_initial_import" every time you compile. I suggest you put some debug statements in the aforementioned methods to see how often and from where it is called. I think at the end of the compilation we reset some thread local values containing the known_resource_types. In the master this isn't a problem, but in your own use it might. > Is this behavioral change intentional? Certainly not. Your use case might be different enough that it triggers some clear everything stuff. -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
