diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-21 04:48:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-21 04:48:26 -0400 |
commit | f937c1fb8074a512d8bb788fa275f5e90595cd47 (patch) | |
tree | 3f6b5b137c33528df10450bc95ff2829bf865622 /debian | |
parent | 0b9e849aba38f0695491ad5ca27de11632627ffe (diff) | |
download | ikiwiki-f937c1fb8074a512d8bb788fa275f5e90595cd47.tar ikiwiki-f937c1fb8074a512d8bb788fa275f5e90595cd47.tar.gz |
crazy optimisation to work around slow markdown
Markdown is slow. Especially if it has to process an enormous page. The
most common enormous page is currently the recentchanges page, which gets
processed a lot, and contains very little actual markdown. Most of it is a
big <div>, which markdown skips ... slowly.
This is a rather sick optimisation to work around markdown's speed issues.
Now inline inserts a small, dummy div, allows markdown to quickly render
the actual page content, then replaces the dummy with the actual inlined
pages later.
Results: Rendering just a recentchanges page, with diffs included, dropped
from 4.5 seconds to 2.7 seconds on my laptop. Building the entire wiki
dropped from 46.6 seconds to 39.5 seconds.
(It would be better if inline were a *post*-processor directive.)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 81a5d4a1d..c92cf86ed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -56,6 +56,7 @@ ikiwiki (2.41) UNRELEASED; urgency=low (Old files will be automatically converted.) * Close meta tag for redir properly. * smiley: Detect smileys inside pre and code tags, and do not expand. + * inline: Crazy optimisation to work around slow markdown. -- martin f. krafft <madduck@debian.org> Sun, 02 Mar 2008 17:46:38 +0100 |