Thanks a lot PMario, I've been wondering about the difference between 
all[current] and is[current] I somehow thought that is[current] is faster 
but good to know the truth

Cheers

On Saturday, May 16, 2020 at 2:50:58 PM UTC+3, PMario wrote:
>
> Hi Tony, 
>
> I think you know the answer. 
>
>  - [is[current]] internally reads the <<currentTiddler>> variable and 
> compares it with the "inputed list" ... If there is no input it uses every 
> tiddler.
>  - [regexp:keywords[Wiki]] will search all tiddlers from the input list 
> if the "search word" is part of the field. 
>
> The regexp search is heavier than searching the list of all tiddlers, 
> especially if you search the "text field". 
>
> So if you do a regexp search in 1 tiddler will need less time if you do a 
> regexp search in every tiddler and then look if the current tiddler is part 
> of the list. 
>
> -------------------
>
> But this:
> - [all[current]regexp:keywords[Wiki]]  does the same thing is much 
> faster. 
>
> [all[current]] doesn't search the input list. It internally reads the 
> currentTiddler variable and returns it. done. 
>
> [is[current]] can be negated, [all[current]] can't.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ea08125e-9976-4657-bb21-bdcaef60f27f%40googlegroups.com.

Reply via email to