[tw5] Re: What's not good with many viewtemplates?
On Monday, May 24, 2021 at 7:13:04 AM UTC+2 Mat wrote: @pmario - Haha! Thanks for taking the time with screenshots etc which of > course also teaches me (and others) how to use that tool. I'm assuming that > the time is measured from the back of the blue and that "double height" > means "double time", right? > It's the DOM structure that we see here. So every layer shows a dom element and its child elements. The higher the "bar", the more DOM elements need to be handled. Since the TW core has to "calculate" which elements have to be redrawn, it also show a little bit of the "complexity" and the "connections" between the elements. ... BUT it's not directly related to the time that is needed. But what can be seen in the first image is, that the sidebar calculates more more elements as actually shown on the screen. ... > But what does it mean that the, say, search field is slower than > everything else? > I think I didn't say that. I only wanted to explain some "landmarks", so you can connect the images to the rendered page. I didn't want to say, that it is slow. ... It probably isn't, since it's only 1 element with several child's. So looping through them should be reasonably fast. Is the whole page not useable before the search bar is fully loaded? I.e is *all > *frozen? > As I wrote. The map only shows the dom structure and has no direct relation to the time needed. -mario -- 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/48cf31c8-a616-45af-9237-bd96b3290613n%40googlegroups.com.
[tw5] Re: What's not good with many viewtemplates?
On Monday, May 24, 2021 at 12:13:30 AM UTC+2 joshua@gmail.com wrote: > That's some really cool visualization, nicely done. > Yea, MS Edge has it built into the dev-tools. -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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/29219428-6afb-4863-8eb1-051f9d694b74n%40googlegroups.com.
[tw5] Re: What's not good with many viewtemplates?
@Jermolene, I'm afraid I can't find exactly when you said it but your reply still answers my question. @pmario - Haha! Thanks for taking the time with screenshots etc which of course also teaches me (and others) how to use that tool. I'm assuming that the time is measured from the back of the blue and that "double height" means "double time", right? But what does it mean that the, say, search field is slower than everything else? Is the whole page not useable before the search bar is fully loaded? I.e is *all *frozen? Thanks! <:-) On Monday, May 24, 2021 at 12:13:30 AM UTC+2 joshua@gmail.com wrote: > That's some really cool visualization, nicely done. > > Best, > Joshua Fontany > > On Thursday, May 20, 2021 at 5:28:26 AM UTC-7 PMario wrote: > >> Just to get a feeling: This is my post here at the group. GG also has a >> nesting level of 24 >> >> [image: hello-there-dom-post.gif] >> >> On the left, there is the "Nav sidebar" ... The last element is my >> earlier post. >> >> have fun! >> mario >> > -- 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/696928fe-8ca1-4430-a635-14b15da924b8n%40googlegroups.com.
[tw5] Re: What's not good with many viewtemplates?
That's some really cool visualization, nicely done. Best, Joshua Fontany On Thursday, May 20, 2021 at 5:28:26 AM UTC-7 PMario wrote: > Just to get a feeling: This is my post here at the group. GG also has a > nesting level of 24 > > [image: hello-there-dom-post.gif] > > On the left, there is the "Nav sidebar" ... The last element is my earlier > post. > > have fun! > mario > -- 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/083ddf16-84f4-42d5-a030-8e9a55cf94a0n%40googlegroups.com.
[tw5] Re: What's not good with many viewtemplates?
@Tones, thanks for your thoughts. > 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. <:-) On Thursday, May 20, 2021 at 1:48:46 AM UTC+2 TW Tones wrote: > Mat, > > As is often the case I think it depends on how you implement it. In one > solution I built I had a dozen object different object-type tiddlers, and > each of these had there own view and edit templates. However the view > template only took the current tiddlers object-template field, obtained the > object name and added a prefix eg $:/objects/viewTemplates/objectname and > transcluded that. > > Therefor the bulk of which was used to display the view template was only > transcluded on demand. > > I saw no performance issues. > > Regards > Tones > > On Wednesday, 19 May 2021 at 23:15:25 UTC+10 Mat wrote: > >> 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/f597db62-df06-41e5-9fee-d740a7c36e81n%40googlegroups.com.
[tw5] Re: What's not good with many viewtemplates?
Mat, As is often the case I think it depends on how you implement it. In one solution I built I had a dozen object different object-type tiddlers, and each of these had there own view and edit templates. However the view template only took the current tiddlers object-template field, obtained the object name and added a prefix eg $:/objects/viewTemplates/objectname and transcluded that. Therefor the bulk of which was used to display the view template was only transcluded on demand. I saw no performance issues. Regards Tones On Wednesday, 19 May 2021 at 23:15:25 UTC+10 Mat wrote: > 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/84af76de-eb5a-4422-979d-2e5fba0af8ean%40googlegroups.com.