On Saturday, May 16, 2020 at 1:59:53 PM UTC+2, Tony K wrote: > > 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 >
Yea, [all[current]] ... The naming is a little bit misleading. Have a look at the code <https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/filters/all/current.js>. It's really simple and fast. [is[current]] looks different. see the code <https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/filters/is/current.js>. The "source function" iterates over the input titles. And you can see the "!" prefix handling. It's not necessary to understand everything, but I think the difference is visible. -m -- 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/d9805769-6065-455a-9d35-07ce0c880dd7%40googlegroups.com.

