diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-16 12:48:07 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-16 12:48:11 -0400 |
commit | 3aaa33064c4593941559f132632b9d19d9146271 (patch) | |
tree | a5505b7c0e6a7b5388795206a61fef6fa8c405e8 /debian/changelog | |
parent | fae7ed14293a43b5096cb2644b996d136a2b76f7 (diff) | |
download | ikiwiki-3aaa33064c4593941559f132632b9d19d9146271.tar ikiwiki-3aaa33064c4593941559f132632b9d19d9146271.tar.gz |
Optmised loadindex by caching the page name in the index.
I have benchmarked the pagename() call this avoids taking up to 2 seconds
for a loadindex in a large wiki. The total loadindex for that wiki was
6.46s, so this is a significant improvment.
Even on a smaller site, this reduces the refresh time from 1.69 to 1.52
seconds.
The only breakage risk here is that pagename() can change the page name
it calculates due to setup changes. But in the case of a setup change, the
whole site is rebuilt. So the cached page name is not used in that
case.
Diffstat (limited to 'debian/changelog')
-rw-r--r-- | debian/changelog | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index fcd47494d..0f6a44c30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ ikiwiki (3.20130904.2) UNRELEASED; urgency=low * Fixed unncessary tight loop hash copy in saveindex where a pointer can be used instead. Can speed up refreshes by nearly 50% in some circumstances. + * Optmised loadindex by caching the page name in the index. -- Joey Hess <joeyh@debian.org> Thu, 05 Sep 2013 10:01:10 -0400 |