From 46e0c5742ce2d380904987b8a2655fe157faca3e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 10 Jul 2013 17:40:33 -0400 Subject: [PATCH] optimize for common case where list is not changed --- IkiWiki/Render.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5