]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/template_creation_error.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / template_creation_error.mdwn
index 2468e3c4f26c480c607e035182b12d4b3f2c1eaa..f14652ed8284bdefa94d09ba029e29e47a9e235d 100644 (file)
@@ -204,3 +204,17 @@ Please, let me know what to do to avoid this kind of error.
 >>>>>> There is one known buglet: `template_syntax.t` asserts that the entire
 >>>>>> file is a valid HTML::Template, whereas it would ideally be doing the
 >>>>>> same logic as IkiWiki itself. I don't think that's serious. --[[smcv]]
+
+>>>>>>> Looking over this, I notice it adds a hash containing all scanned
+>>>>>>> files. This seems to me to be potentially a scalability problem on
+>>>>>>> rebuild of a site with many pages. Ikiwiki already keeps a lot
+>>>>>>> of info in memory, and this adds to it, for what is a fairly
+>>>>>>> minor reason. It seems to me there should be a way to avoid this. --[[Joey]] 
+
+>>>>>>>> Maybe. Are plugins expected to cope with scanning the same
+>>>>>>>> page more than once? If so, it's just a tradeoff between
+>>>>>>>> "spend more time scanning the template repeatedly" and
+>>>>>>>> "spend more memory on avoiding it", and it would be OK to
+>>>>>>>> omit that, or reduce it to a set of scanned *templates*
+>>>>>>>> (in practice that would mean scanning each template twice
+>>>>>>>> in a rebuild). --s