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
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.
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
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
I guess there's so much to discover if I look harder at all the
features in the Wiki.
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