|
Cookbook /
FastSearchSummary: how to improve the speed of searches and categories on large sites with slow machines
Version: 1.3 - 2006-8-18
Prerequisites: Last tested on PmWiki version: 2.1.14
Status:
Maintainer: Martin Fick
QuestionHow can I improve the speed of searches and categories on large sites with slow machines? Answer
How do you find out if find and grep are in the path?
@include_once("
Notes and Comments
QuestionsHi! I've tried to use your cookbook, but it seems that it search only in wikilib.d. My settings for Each time I've attempted to comment out that section I break PmWiki. Can you specify exactly which lines to comment out in pagelist.php? Same thing here. I have the find and grep as well. In scripts/pagelist.php, search for function MakePageList($pagename, $opt, $retpages = 1) {
(this is line 155 in pmwiki-2.1.27) and insert /* Commented out so grepsearch.php can run above it. Now you need to find the matching '}'. This should be the next '}' in the first column (line 253 in pmwiki-2.1.27). One easy way to find this is to search for the word 'function' (the ending brace should be just above the next function declaration). After the brace, add End comment out of MakePageList */ How much faster does this really make it? I use (:pagelist...:) a lot on my pages. One large page was taking 11.9 to 4.89 seconds just for the MakePageList() function. Using grepsearch.php reduced this to 0.02 seconds (I used $StopWatch to measure this) grepsearch.php breaks the ability to use parameters on Wiki feeds. The error results from not finding the sortPageList() function. The way to correct it is to change line 197 of grepsearch.php: 'SortPageList' to 'PageListSort' -- eliot
Versions
2006-8-18 : FastSearch - version 1.3
2005-12-02 : FastSearch - version 1.2
2005-11-02 : FastSearch - version 1.1
2005-11-02 : FastSearch - version 1.0See AlsoContributors
|