I noticed that the new Beta release 09 Sep 2000 has a performance problem for displaying the changes page. As a reminder, the
changes script was replaced by the
WebChanges topic that has an inline
%SEARCH% . The
changes script was very fast, it was simply reading a
.changes file that had lines of {topic names, author, date}. The performance of inline
%SEARCH% is OK for a small web, but I noticed that it is very slow for big webs, it takes 50 sec for a web with 1700 pages.
The speed of search sorted by date and a limit on returned pages should be improved.
WebChanges has this search string:
%SEARCH{".*" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" limit="50"}%
The inline
%SEARCH% is more elegant then the
changes script, we should keep that if possible.
--
PeterThoeny - 11 Sep 2000
I improved the search algorythm in
wikisearch.pm. The
WebChanges topic on a big web with 700 topics took 3 minutes before the improvement, now it takes 7 seconds. There is also a small improvement in
getRevisionInfo() of
wikistore.pm that reduces two system calls to one when you request the author and date of the latest revision. We are now almost back to the speed of the original
changes script.
Commited to
TWikiAlphaRelease.
--
PeterThoeny - 03 Nov 2000