← Back to team overview

zim-wiki team mailing list archive

Re: zim search speedup

 

Hi Sylvian,

My apologies for the late response. Can you be more specific what is
slowing down?  I guess it is search, but maybe you see other things as well?

All search code is in zim/search.py as you may have expected :)

What may help you is to use specific search keywords to narrow down the
search. (See manual for an overview.)  If you do a simple search without
keywords it is effectively a "grep" through the whole notebook. However
page names, links, tags, etc. can be found much faster because they are in
the index. So searching by page name is almost instantaneously.

No optimizations are currently planned for the full text search. Afraid I
lack the expertise to do something smarter there myself.

Regards,

Jaap



On Sun, Oct 5, 2014 at 8:04 AM, Sylvain Viart <launchpad@xxxxxxxxxxxx>
wrote:

>  Hi,
>
> My notebook is becoming a bit slow (may be my laptop is slow too)
>
> find Notes/ -name \*.txt -print0| wc --files0-from=- |tail -1
> 20516 164033 1200426 total
>
> Could you point me where is the search code of zim, so I can have a look
> at which algorithm it uses.
>
> Regards,
> Sylvain.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References