> Say there are 100 tiddlers tagged tagA and only 10 tagged tagB, and
> these are among some 1000 tiddlers tagged with other stuff. And
> "IsTagged<X>" is some generic function listing or identifying all
> tiddlers tagged with tag<X>
> [...]
> Is there any difference in evaluation speed?

Well, there is currently no built-in "chaining" of tiddler collections 
for subsequent filtering operations. Let's assume there was though.

Let's also assume your document contains 1000 tiddlers, of which 100 are 
tagged with "foo", 10 are tagged with "bar", and 5 are tagged with both 
"foo" and "bar":
     var sel = store.getTiddlers(); // returns 1000 tiddlers
     sel = sel.filter("foo");       // checks 1000 tiddlers, returns 100
     sel = sel.filter("bar");       // checks 100 tiddlers, returns 5
vs.
     var sel = store.getTiddlers(); // returns 1000 tiddlers
     sel = sel.filter("bar");       // checks 1000 tiddlers, returns 10
     sel = sel.filter("foo");       // checks 10 tiddlers, returns 5

While the latter should be faster in this specific case, you generally 
don't know those numbers in advance, do you?

Maybe I'm misunderstanding the question though?


-- F.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to