diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 16:18:18 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 16:18:18 +0000 |
commit | 87a1d3ff8fb43d219c6f685600a103df43cef4c1 (patch) | |
tree | 7f3956a2f5b8eb1ef0c81b1e2d33fac8eb9213b6 /IkiWiki/CGI.pm | |
parent | 6ab0659a9debfcc1be37c71a15e4e1490d1b736a (diff) | |
download | ikiwiki-87a1d3ff8fb43d219c6f685600a103df43cef4c1.tar ikiwiki-87a1d3ff8fb43d219c6f685600a103df43cef4c1.tar.gz |
* Encode & in diffurl in examples, to conform to pedantic rules.
* Speed up RecentChanges by another 40% or so with some memoization.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 3e4cbe4cf..424ce2c78 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -34,6 +34,13 @@ sub cgi_recentchanges ($) { #{{{ unlockwiki(); + # Optimisation: building recentchanges means calculating lots of + # links. Memoizing htmllink speeds it up a lot (can't be memoized + # during page builds as the return values may change, but they + # won't here.) + eval q{use Memoize}; + memoize("htmllink"); + my $template=template("recentchanges.tmpl"); $template->param( title => "RecentChanges", |