[dokuwiki] Re: search improvements

Guy Brand wrote:

Hi all,


I did some more tests. Results (too long for a mail)
are at http://www-isis.u-strasbg.fr/bug/snippet/
Hi Guy,

Can you give some idea of the number of search successes in the files which were returning snippets?

The key difference between opt1 & opt2 is preg_match_all v preg_match in a short loop. My guess is, if the number of matches in the file is larger than 3 (the max. number of context snippets returned for one file) then opt2 does better. If the number of matches is 3 or less then opt1 will do better.

I did look at your figures, I am not sure I understand them properly. Is there any way to see the contribution to the total page execution time? If they both reduce ft_snippets() timing so that its no longer significant in the production of the page, then the choice on which one to use can be made on other reasons besides just execution time.

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: