On Monday, August 1, 2016 at 9:57:39 PM UTC-7, Dmitry Skopa wrote:
>
> This works pretty well, thank you. But wouldn't it cause tiddlywiki to run 
> same search routine twice?
>

Yes, but this particular search is pretty efficient... "all[current]" is a 
simple reference to the current tiddler context (which is automatically 
tracked by the core), "sort[modified]" can be omitted (since you are only 
testing for non-empty), and "limit[1]" merely truncates the filter result 
to one item.  Only the "tagging[]" filter has any real lookup processing, 
and even that is relatively efficient since you are only looking for one 
specific tag (the current tiddler), so performance is linear, based on the 
total number of tiddlers.
 
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9548554b-4e19-445b-8d3d-b460264f8be4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to