From: joey Date: Tue, 4 Jul 2006 16:34:27 +0000 (+0000) Subject: * Memoize abs2rel, which is still kinda slow, for another 30% speedup X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/014a387996390c6ae3ecdc53e8c53c0fad67cc33?hp=4aa5d301ae5ede5fae7ecef18cdf8645c752cce7 * Memoize abs2rel, which is still kinda slow, for another 30% speedup in time to build the doc wiki. --- 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}; diff --git a/debian/changelog b/debian/changelog index d248d2689..63a345b9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -46,8 +46,10 @@ ikiwiki (1.8) UNRELEASED; urgency=low No code changes involved. * Encode & in diffurl in examples, to conform to pedantic rules. * Speed up RecentChanges by another 40% or so with some memoization. + * Memoize abs2rel, which is still kinda slow, for another 30% speedup + in time to build the doc wiki. - -- Joey Hess Tue, 4 Jul 2006 12:16:39 -0400 + -- Joey Hess Tue, 4 Jul 2006 12:22:57 -0400 ikiwiki (1.7) unstable; urgency=low diff --git a/doc/roadmap.mdwn b/doc/roadmap.mdwn index e3f42dbe7..bbdfd9ede 100644 --- a/doc/roadmap.mdwn +++ b/doc/roadmap.mdwn @@ -18,7 +18,7 @@ Released 29 April 2006. * [[Tags]] _(status: partial)_ * Should have fully working [[todo/utf8]] support. _(status: fair)_ * [[Optimised_rendering|todo/optimisations]] if possible. Deal with other - scalability issues. _(status: 25%-35% speedup since 1.0)_ + scalability issues. _(status: 45%-60% speedup since 1.0)_ * Improved [[todo/html]] stylesheets and templates. * Improved scalable [[logo]]. _(status: done)_ * Support for at least one RCS aside from svn. Once it supports two, it should