Plugin loadspeed and Wiki size, what is the slower factor?

6 views
Skip to first unread message

psp...@gmail.com

unread,
Sep 7, 2007, 3:58:38 PM9/7/07
to TiddlyWiki
Two questions:

My TiddlyWiki is about 700KB but have 30 plugins loading at startup.
I'm making the assumption that the number of and the complexity of the
plugin has a greater affect on the Wiki load time than the size of the
Wiki due to the number of Tiddlers.
If so:

Q1 - is there a way to see how much time each plugin takes during the
Wiki start up?

Q2 - is there a way to use plugins on-demand. Since many plugins that
are not adding direct functionality to the core, are only called when
the Tiddler requires them, the Wiki start up would be as fast as an
empty.tw and a browser refresh would not be needed.
The small delay to load 1 of 30 plugins as needed would be tollerable,
I think. This could also be a way of avoiding the javascript of one
plugin overriding the function of another plugin, as I described in
the post about "HoverMenuPlugin" conflicting with
"SelectPalettePlugin".

Thanks

FND

unread,
Sep 7, 2007, 4:09:16 PM9/7/07
to Tiddl...@googlegroups.com
> I'm making the assumption that the number of and the complexity of the
> plugin has a greater affect on the Wiki load time than the size of the
> Wiki due to the number of Tiddlers.

That's very likely (always depending on the respective plugins, of course).

> is there a way to see how much time each plugin takes during the
> Wiki start up?

None that I know of.
However, it would certainly be possible to write a (small?) patch for
this...

> is there a way to use plugins on-demand

What you're describing - if possible at all - would probably be very
complex and require extensive changes, so I doubt it's gonna happen
anytime soon...
(Though, as always, I might be wrong.)

Just for the sake of completeness, here's a page with a few pointers on
how to speed up TiddlyWiki:
http://www.tiddlywiki.org/wiki/Performance_Issues


-- F.

Xavier Vergés

unread,
Sep 7, 2007, 5:10:48 PM9/7/07
to TiddlyWiki
> Q2 - is there a way to use plugins on-demand.

This depends on the pugin, but I would encourage plugin developers to
allow this behaviour when this makes sense. Udo's YourSearchPlugin can
be loaded dinamically with a bookmarklet:
http://xdexavier.googlepages.com/yoursearch.html

The same simple technique could be easily be used with other plugins,
by storing them as .js files (provided that their functionality makes
sense in a delay-load way)

-Xv


Eric Shulman

unread,
Sep 7, 2007, 5:32:32 PM9/7/07
to TiddlyWiki, Marianne Semenoff
> > is there a way to see how much time each plugin takes during the
> > Wiki start up?

The plugin 'load timer' information is available in the shadow
tiddler, [[PluginManager]], which is also accessible from the
backstage>plugins menu, or by embedding the <<plugins>> macro into any
tiddler content.

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

psp...@gmail.com

unread,
Sep 7, 2007, 8:07:38 PM9/7/07
to TiddlyWiki
Thanks everyone;

I guess there's so much to discover if I look harder at all the
features in the Wiki.

Martin Budden

unread,
Sep 8, 2007, 12:50:37 PM9/8/07
to Tiddl...@googlegroups.com
You can also see the total time taken to load the plugins:

1) go to the tweak dropdown in backstage
2) click the "Show unknown options" checkbox
3) click the "chkDisplayInstrumentation" checkbox, it's about the 8th one down

this will let you see what proportion of the total load time is spent
loading the plugins

Martin

Reply all
Reply to author
Forward
0 new messages