From: Joey Hess Date: Wed, 10 Jul 2013 21:40:33 +0000 (-0400) Subject: optimize for common case where list is not changed X-Git-Tag: 3.20130710~6 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/46e0c5742ce2d380904987b8a2655fe157faca3e?ds=sidebyside;hp=d932d5ab00885a9f7bab7644d75a38ad9a4dc48b optimize for common case where list is not changed --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index c41dac9f6..58b374ad7 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -773,7 +773,7 @@ sub refresh () { my %existingfiles; run_hooks(needsbuild => sub { my $ret=shift->($changed, [@$del, @$internal_del]); - if (ref $ret eq 'ARRAY') { + if (ref $ret eq 'ARRAY' && $ret != $changed) { if (! %existingfiles) { foreach my $f (@$files) { $existingfiles{$f}=1;