On Thursday, May 13, 2021 at 6:38:42 PM UTC+2 Mohammad wrote: Eg: You have 2 checkboxes, that are connected to the same data-tiddler, >> which may be seen as an advantage. >> >> cb1: <$checkbox tiddler="test" index=1 checked="selected" unchecked="" >> default=""> Selected?</$checkbox> >> cb2: <$checkbox tiddler="test" index=2 checked="selected" unchecked="" >> default=""> Selected?</$checkbox> >> > > This is exactly the case with the Todolist plugin! and it is quite common > to have several 10s of todo items connected to three four dataTiddler! > So, I should be aware to not use one Todolist with many items! >
As I wrote, if you have a countable number of items in the data-tiddler, the impact won't be critical. ... But there is one. Eg: If 1 checkbox = 1 tiddler, the refresh will execute about 10-15 lines of code 1 times. .. If it uses a data-tiddler it will execute about 30-50 lines of code for every checkbox, that is visible at the moment. For the first checkbox it will be more lines of code, since the data-tiddler cache needs to be rebuilt. The others will be faster, since they can use the cache. .. So it probably won't kill the performance, but there is more code that needs to be executed. -------------------- If 2 checkboxes use 1 tiddler but 2 different fields, there will be the same refresh problem, but with 10-15 lines of code per checkbox. ... Accessing tiddler fields is faster as accessing data-tiddler indexes. ... -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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9af7a397-ebea-4d29-88b5-020e8e9da851n%40googlegroups.com.

