Hi Smandoli,
Firebug or DevTools are a good option to see what's going on. Chrome
console has a more detailed view in profiling mode, which also shows
the time needed to redraw the DOM. There are several good posts about
"DOM redraw refresh" (ask google)

(you can paste the following lines into your debug console)

var t1 = new Date()
var i,x;

for (i=0; i<1000; i++) {
    for (x=0; x < 10; x++) {}
}
console.log("delta: ", new Date() - t1)

You can see nested loops are the main "problem" in TW. So for example
if you nest forEach... loops, that do a DOM redraw it can be slow. eg:
If you programmatically create a tiddler all lists ... are redrawn ..

There are some core functions, that can speed up your loops.

store.suspendNotifications();
//your stuff here
store.resumeNotifications();
store.notifyAll();

hope that helps for the beginning.
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to