Optimize away most expensive file prune calls, when refreshing
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 9 Oct 2009 00:27:56 +0000 (20:27 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 9 Oct 2009 00:27:56 +0000 (20:27 -0400)
commit3bb00d142a4d31316fc6f0eb1277aa2fafe4dbe9
tree6f17cac8538244cfd35ba403f8e5fe0e7401fc26
parent4b8ca7cfc147b2016b17cc88a21052a7ee6d46fb
Optimize away most expensive file prune calls, when refreshing

Benchmarking refresh of a a wiki with 25 thousand pages showed
file_pruned() using most of the time. But, when refreshing, ikiwiki already
knows about nearly all the files. So we can skip calling file_pruned() for
those it knows about. While tricky to do, this sped up a refresh (that
otherwise does no work) by 10-50%.
IkiWiki.pm
IkiWiki/Render.pm
debian/changelog