summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-01-24 22:23:41 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-02-03 16:45:31 -0800
commit2cf45283d7eea90461f1c9606af710bf5645076a (patch)
tree1b635aa921ea37632e76bd492d1f3cde9d0bd789 /lib/puppet/interface/documentation.rb
parent9584cda2a529cdcf06d766692f5749c775ad7d14 (diff)
downloadpuppet-2cf45283d7eea90461f1c9606af710bf5645076a.tar.gz
puppet-2cf45283d7eea90461f1c9606af710bf5645076a.tar.xz
puppet-2cf45283d7eea90461f1c9606af710bf5645076a.zip
Feature #2597 -- eliminate OpenStruct for performance...
A bit of profiling shows that most of the time spent in clustering is spent trolling around through OpenStruct. Replacing this with a hash or, where sane, an array for the stack frame in our non-recursive implementations makes performance significantly faster. (3 seconds to .65 seconds faster.) I guess those developer niceties do have some cost after all. Better to take the hit on readability and prefer performance here.
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions