On Wednesday, July 3, 2019 at 1:47:26 AM UTC+2, Mat wrote:
>
> PMario wrote:
>>
>> Accessing an alias name needs to iterate over every tiddler in the store 
>> and have a look at the aliases field, if the alias is there. 
>> Worst case: The last tiddler contains the wanted alias. :/
>> Best case: The first tiddler contains the alias. ... In average that's 
>> slower as directly accessing a title. 
>>
>
> Don't all tiddlers still have to be searched even if you hit that best 
> case? Or how do you "cut" a filter search? My impression is that every 
> filter is run "in full".
>

Uups. you are right. If 2 aliases contain the same value. Both of them are 
shown. .. Worst case all the time :/ ... That's why indexing should be able 
to help us here. ... But only tests will show :)
 

>  
>
>> plugins can use a caching mechanism. So only the first lookup will be 
>> slower. 
>>
>
> Could this theoretically be "brought to the front" so users could state 
> "chache this"... maybe even as part of Jermys new "kill the magic black 
> boxes" ambition?
>

Not really. ... The new "tag" and "field" indexes, are created 
automatically from the core. There is some javascript involved. I don't 
think we can make those options "user facing", since you need deep 
knowledge of the internal "store structure". And you'll probably always 
need specialized code. 

-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 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/ee75fe6c-0ea0-42b3-8a98-8d80f2ff0d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to