How to make TW5 work fast with many tiddlers?

165 views
Skip to first unread message

Siniy-Kit

unread,
Jan 13, 2022, 12:33:28 AM1/13/22
to TiddlyWiki
If Tiddlywiki contain more than 10000+ tiddlers it starts work slow 

and the same tiddlywiki with 4000+ items 

is it possible to freeze all <$list filter="... not to update them on every click? 

Flibbles

unread,
Jan 15, 2022, 3:15:28 PM1/15/22
to TiddlyWiki
I don't know about that, but "$list filter" could be better. If you profile that russian tiddlywiki you linked, you'll see that typing stuff into the search bar lags, and it's because the browser is spending >50% of its time in garbage collection.

Filters make a ton of extraneous arrays. And they usually freshly compile with every single implementation. These are things that could be improved upon. "<$list filter" could hold onto its compiled filters, so it doesn't toss them out. And it may be time to seriously consider lazy evaluations of filters. I've proposed the idea before, and made POCs of it, but tiddlywiki slowdown is becoming an issue for me too, and it all points to bad memory use.

I may do a deeper dig into the expense of filters and push for lazy versions of them soon.
Reply all
Reply to author
Forward
0 new messages