diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-10 17:40:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-10 17:40:33 -0400 |
commit | 46e0c5742ce2d380904987b8a2655fe157faca3e (patch) | |
tree | 4bdfef1161fe51276d4a001daa1b6e0c15847f02 /IkiWiki/Render.pm | |
parent | d932d5ab00885a9f7bab7644d75a38ad9a4dc48b (diff) | |
download | ikiwiki-46e0c5742ce2d380904987b8a2655fe157faca3e.tar ikiwiki-46e0c5742ce2d380904987b8a2655fe157faca3e.tar.gz |
optimize for common case where list is not changed
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |