diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 16:34:27 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 16:34:27 +0000 |
commit | 014a387996390c6ae3ecdc53e8c53c0fad67cc33 (patch) | |
tree | 846666549a6aebb371409e8570a47752eca90708 /IkiWiki.pm | |
parent | 4aa5d301ae5ede5fae7ecef18cdf8645c752cce7 (diff) | |
download | ikiwiki-014a387996390c6ae3ecdc53e8c53c0fad67cc33.tar ikiwiki-014a387996390c6ae3ecdc53e8c53c0fad67cc33.tar.gz |
* Memoize abs2rel, which is still kinda slow, for another 30% speedup
in time to build the doc wiki.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 56a27b3b0..d8b272125 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -6,6 +6,10 @@ use strict; use Encode; use open qw{:utf8 :std}; +# Optimisation. +use Memoize; +memoize("abs2rel"); + use vars qw{%config %links %oldlinks %oldpagemtime %pagectime %renderedfiles %pagesources %depends %hooks}; |