Re: [tw5] What's not good with many viewtemplates?

2021-05-20 Thread Jeremy Ruston
> > As is often the case I think it depends on how you implement it.
> 
> I distinctly recall @Jermolene singling heavy use of templates as a thing 
> that could slow things down so I my interpretation is that they are more 
> critical in this regard than many other things. So, I'm trying to understand 
> what specifically about them that cause this.

I’d need more context to be clear about what I meant. Was I talking from the 
perspective of adding things to the core, or from the perspective of somebody 
building something out of TiddlyWiki? It sounds like I was talking about adding 
too many view template segments. The “special” thing about view template 
segments is that they appear in every tiddler, and so if they take a long time 
to render the effects will be worse the more tiddlers that are open. Beyond 
that, it’s all just templates all the way down, and the performance trade-off 
remains that performance will generally get worse as the templates get more 
complex.

Best wishes

Jeremy

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7C4DAB15-AF51-443E-9743-BBA3D0942210%40gmail.com.


[tw5] What's not good with many viewtemplates?

2021-05-19 Thread Mat
I've heard cautions against using many viewtemplates, for performance 
reasons.

But what, *specifically*, causes the poorer performance from this?

For example, it doesn't make sense that it would be to locate the templates 
because it is still only one search trough *all *tiddlers regardless if the 
filter finds one template or a hundred (...right?)

So is it rather what the viewtemplate shows that can be a problem? E.g if a 
viewtemplate has a lot of nested lists? ...but in that case, one such 
viewtemplate could be worse than 10 simpler viewtemplates so it would not 
warrant caution from using many viewtemplates *per se*.

Or is the problem if there are *many open* tiddlers? Beacuse each of them 
shows all viewtemplates? So it is "N open tiddlers" times "M number of 
templates". But then the templates only deserves half the blame.

Does the caution change when one uses "conditional viewtemplates", i.e 
viewtemplates with a wrapping listwidget like
  ... 
?

In summary: What is the actual problem with many viewtemplates?

Thanks!

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/01b6e9c3-fc69-4007-8124-73a377515b6fn%40googlegroups.com.