summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-01-24 21:56:18 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-02-03 16:45:30 -0800
commit9584cda2a529cdcf06d766692f5749c775ad7d14 (patch)
tree898ae90777e4b28c78546b134b350c7883faaa84 /lib/puppet/interface/documentation.rb
parentd302628f9dc5a5406acabb272ba13ad1b1efe7ff (diff)
downloadpuppet-9584cda2a529cdcf06d766692f5749c775ad7d14.tar.gz
puppet-9584cda2a529cdcf06d766692f5749c775ad7d14.tar.xz
puppet-9584cda2a529cdcf06d766692f5749c775ad7d14.zip
Feature #2597 -- use O(1) methods as often as possible.
This uses a separate hash and array to track the visited path and the seen vertex data; while that is less efficient than using a single data structure, it avoids on O(n) operation on the stack to determine if we have previously visited a vertex.
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions