aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/map.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-06-18 15:55:55 +0100
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-08-24 23:18:16 +0100
commitb6fcb1cb0ef27e5a63184440675d465fad652acf (patch)
tree799058dc2c73b28f22524d472de540a4eebba3c2 /IkiWiki/Plugin/map.pm
parentfe4f176f725b069ac74561600bba982c2d9ad607 (diff)
downloadikiwiki-b6fcb1cb0ef27e5a63184440675d465fad652acf.tar
ikiwiki-b6fcb1cb0ef27e5a63184440675d465fad652acf.tar.gz
calendar, inline, map: don't pre-join dependencies
The new dependency handling works better (eliminates more duplicates) if dependencies are split up. On the same wiki mentioned in the previous commit, this saves about a second (i.e. 4%) on the same test.
Diffstat (limited to 'IkiWiki/Plugin/map.pm')
-rw-r--r--IkiWiki/Plugin/map.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm
index 826dbbd66..54146dc46 100644
--- a/IkiWiki/Plugin/map.pm
+++ b/IkiWiki/Plugin/map.pm
@@ -73,7 +73,9 @@ sub preprocess (@) {
add_depends($params{page}, $params{pages});
# Explicitly add all currently shown pages, to detect when pages
# are removed.
- add_depends($params{page}, join(" or ", keys %mapitems));
+ foreach my $item (keys %mapitems) {
+ add_depends($params{page}, $item);
+ }
# Create the map.
my $parent="";