aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-24 22:10:12 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-24 22:10:12 -0400
commit134a25d1633513afd9506318aeb4349381dc061e (patch)
tree01a6e77c2adbf3837ab2444aa3390c4a31ce2e96 /doc
parent96936899da3037fa28f8be73003a14aa829878ee (diff)
downloadikiwiki-134a25d1633513afd9506318aeb4349381dc061e.tar
ikiwiki-134a25d1633513afd9506318aeb4349381dc061e.tar.gz
better analysis of why the depends keep growing
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/should_optimise_pagespecs.mdwn12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/todo/should_optimise_pagespecs.mdwn b/doc/todo/should_optimise_pagespecs.mdwn
index f3048f328..2dd1f7b9e 100644
--- a/doc/todo/should_optimise_pagespecs.mdwn
+++ b/doc/todo/should_optimise_pagespecs.mdwn
@@ -244,11 +244,13 @@ more complicated every time!
> other things that overloaded the system.
> b) Suggests to me we will probably want to force a rebuild on upgrade
> when fixing this (via the mechanism in the postinst).
->
-> BTW, the underlying bug here is really horribly simple:
-> When refreshing, `loadindex` preserves the previous depends list,
-> and `add_depends` adds stuff to it. So it doubles every time a page is
-> re-rendered during refresh. --[[Joey]]
+>
+> I've investigated why the pagespecs keep growing: When page A changes,
+> its old depends are cleared. Then
+> page B that inlines A gets rebuilt, and its old depends are also cleared.
+> But page B also inlines page C; which means C gets re-rendered. And this
+> happens w/o its old depends being cleared, so C's depends are doubled.
+> --[[Joey]]
After the initial optimization: 14.27s to rebuild, 8.26/8.33/8.26 to refresh.
Success!