New Users: Disable sidebarTabs for major speed boost

78 views
Skip to first unread message

Trey

unread,
Jun 25, 2011, 9:13:59 PM6/25/11
to TiddlyWiki
This is an informational note for new tiddlywiki users who are
customizing, using lots of plugins / creating lots of content: if your
wiki is lagging, and you need a speed boost, disable the tiddler
"sidebarTabs"!!

You can disable it by modifying the tiddler "pageTemplate" and
deleting this line:
<div id='sidebarTabs' refresh='content' force='true'
tiddler='SideBarTabs'></div>

However, that solution may not work for some people, because you still
want to access the stuff in those tabs sometimes. An alternative
solution is to install Mr. Shulman's NestedSlidersPlugin (http://
www.tiddlytools.com/#NestedSlidersPlugin). Then, in "sidebarTabs" you
can replace the default content with the following:

+++... Navigation <<tabs txtMainTab "Timeline" "Timeline" TabTimeline
"All" "All tiddlers" TabAll "Tags" "All tags" TabTags "More" "More
lists" TabMore>> ===

the only change here is the +++... at the beginning and === at the
end. The +++ and === invoke a slider. The three dots ... are what's
important. They "defer" the loading of the slider's contents until
you actually open it. So there's no impact on memory performance
unless you open the slider.

I had put my navigation tabs in a regular slider thinking it
automatically did this deferring behavior, but my wiki kept getting
slower and slower (20 plugins, about 1 meg file size), until it took
30 seconds to save a tiddler. Putting in the "..." takes this down to
2 seconds. This happens because the code in sidebarTabs, while
useful, must run through every tiddler in your wiki every time you
make a change.

Just a detailed informational message.
Trey

HansBKK

unread,
Jun 25, 2011, 10:16:51 PM6/25/11
to tiddl...@googlegroups.com
I assume Eric's plugin ToggleRightSidebar accomplishes the same thing, while also freeing up the screen real estate. BTW I've got a long laundry list of plugins and thousands of tiddlers, and haven't been annoyed (yet) by performance issues. . .

I combine this with FullScreenPlugin (available here these days) in my ToolBarCommands to allow me to keep my reference TWs in a narrow window to the side with my TW's leftnav, right sidebar and top menubar "applevel window chrome" all hidden. This lets the whole browser window fill up with tiddler content; combined with some key @Print CSS it's also provides very clean hardcopy/PDF output.

I also run key TWs in Prism as standalone applets, which lets me get rid of all my usual browser chrome - also a speed boost compared to my usual extensions-laden FireFox profile.

HansBKK

unread,
Jun 25, 2011, 10:23:45 PM6/25/11
to tiddl...@googlegroups.com
Forgot to add - I've got one use case where I'd like to use the right sidebar for an additional (tertiary) nav display of "reference" tiddlers, and your solution allows for adding that without sacrificing the normal functionality.

Plus the fact that I've got my left menu tree nav set up in tabs, so I can toggle between three separate "dimensions" of hierarchical menus (based on TWT-Treeview "Executive" an excellent user interface package). This lets me "slice and dice" the various dimensions of exploring large collections of cross-referenced tiddlers into separate taxonomies for navigation while keeping the UI relatively clean.

A bit off topic I know but hope it helps someone. . .

Eric Shulman

unread,
Jun 25, 2011, 11:37:14 PM6/25/11
to TiddlyWiki
On Jun 25, 7:16 pm, HansBKK <hans...@gmail.com> wrote:
> I assume Eric's plugin ToggleRightSidebar<http://www.tiddlytools.com/#ToggleRightSidebar>accomplishes the same thing, while also freeing up the screen real estate.
> BTW I've got a long laundry list of plugins and thousands of tiddlers, and
> haven't been annoyed (yet) by performance issues. . .

Sorry, but that's not true. TiddlyTools' ToggleRightSidebar and
ToggleFullScreen only HIDE the content using CSS. It doesn't stop the
TWCore from processing that content.

Note: You can reduce (virtually eliminate) the sidebar tabs processing
without making *any* changes to the page or tabs layout, simply by
displaying the *Shadowed* tab, which has very little overhead. As
long it is showing that tab, the overhead is reduced. If you want to
make sure that it always stars out on the Shadowed tab, add the
following to a tiddler tagged with systemConfig:

config.options["txtMainTab"]="Shadowed";

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
----------
Was this answer useful? If so, please help support TiddlyTools:

TiddlyTools direct contributions: (paypal)
http://www.TiddlyTools.com/#Donate
UnaMesa tax-deductible contributions:
http://about.unamesa.org/Participate (paypal)
TiddlyWiki consulting:
http://www.TiddlyTools.com/#ELSDesignStudios
http://www.TiddlyTools.com/#Contact

HansBKK

unread,
Jun 26, 2011, 12:20:19 AM6/26/11
to tiddl...@googlegroups.com
On Sunday, June 26, 2011 10:37:14 AM UTC+7, Eric Shulman wrote:
On Jun 25, 7:16 pm, HansBKK <han...@gmail.com> wrote:

Note: You can reduce (virtually eliminate) the sidebar tabs processing
without making *any* changes to the page or tabs layout, simply by
displaying the *Shadowed* tab, which has very little overhead.  As
long it is showing that tab, the overhead is reduced.  If you want to
make sure that it always stars out on the Shadowed tab, add the
following to a tiddler tagged with systemConfig:

config.options["txtMainTab"]="Shadowed";

Aha, very good to know, thanks, so sliders are the way to go?

So I'm guessing (when optimizing for performance) the best practice would be to leave the standard SideBarTabs as Shadowed, and then set a separate interface with any desired enhanced listings (whether customized or say using TableOfContents) inside a slider?

BTW, my TWT-based design has this in the shadowed SideBarTabs
<<slider chkSliderSideBarTabs SideBarTabsSlider 'index »' 'tiddlers, timeline, all, tags'

is that a built-in slider macro, and does it work the same way regarding a performance advantage as the OP's example?

And if so, then it doesn't make a difference if the "slid" tiddler is shadowed or not, is that right?

PMario

unread,
Jun 26, 2011, 3:23:29 AM6/26/11
to TiddlyWiki
On Jun 26, 6:20 am, HansBKK <hans...@gmail.com> wrote:
> On Sunday, June 26, 2011 10:37:14 AM UTC+7, Eric Shulman wrote:
> > config.options["txtMainTab"]="Shadowed";
>
> Aha, very good to know, thanks, so sliders are the way to go?
>
> So I'm guessing (when optimizing for performance) the best practice would be
> to leave the standard SideBarTabs as Shadowed, and then set a separate
> interface with any desired enhanced listings (whether customized or say
> using TableOfContents<http://www.tiddlytools.com/#TableOfContentsPluginInfo>)
> inside a slider?

"tabs" are the way to go.
A slider also only hides the content. A tab removes it.
-m

HansBKK

unread,
Jun 26, 2011, 6:53:34 AM6/26/11
to tiddl...@googlegroups.com
Well tabs are the standard interface already, so the issue must be which one is open - it re-renders with every page refresh?

So having this in my zzConfig:

    config.options["txtMainTab"]="More";
    config.options["txtMoreTab"]="Shadowed";

would take care of the standard tabset each startup?



Eric Shulman

unread,
Jun 26, 2011, 8:13:57 AM6/26/11
to TiddlyWiki
> So having this in my zzConfig:
>
>     config.options["txtMainTab"]="More";
>     config.options["txtMoreTab"]="Shadowed";
>
> would take care of the standard tabset each startup?

Yes. Those *two* lines are needed to set the sidebar tabs to Shadowed
on startup.

-e

Måns

unread,
Jun 26, 2011, 11:10:07 AM6/26/11
to TiddlyWiki
Here's a nice video where Eric, Jeremy and a few other
TiddlyWikiWizards discuss the matter:
http://blip.tv/play/gtQ9ve0vAg

Cheers Måns Mårtensson

HansBKK

unread,
Jun 26, 2011, 1:56:07 PM6/26/11
to tiddl...@googlegroups.com
Wow! May I ask if there is a Tiddlywiki reference site that points to stuff like this, built-in macro docs etc, indexed by topic? I may have had trouble finding it via Google if it's maintained in a TW. . .

PMario

unread,
Jun 26, 2011, 5:00:52 PM6/26/11
to TiddlyWiki

HansBKK

unread,
Jun 27, 2011, 7:17:04 AM6/27/11
to TiddlyWiki
Thanks for the link - I see it's the home of my current fav TWT-
treeview stuff.

However, my screen's overwhelmed with big images from "bit.ly/
imageshack" of frogs in ice cubes "Domain unregist3red". . .

Alex Hough

unread,
Jun 27, 2011, 3:08:19 PM6/27/11
to tiddl...@googlegroups.com
>TiddlyWikiWizards discuss the matter: http://blip.tv/play/gtQ9ve0vAg

This is surely a case for more Eric and Jeremy vids. Great stuff. I
never seen this. Are there any more? an there be more? Very
interesting to see people talking like this.

More Please!

Alex

> --
> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>
>

Måns

unread,
Jun 27, 2011, 3:52:01 PM6/27/11
to TiddlyWiki
Hi Alex

> >TiddlyWikiWizards discuss the matter:http://blip.tv/play/gtQ9ve0vAg
>
> This is surely a case for more Eric and Jeremy vids. Great stuff. I
> never seen this. Are there any more? an there be more? Very
> interesting to see people talking like this.
>
> More Please!

I found it at unamesa.org. It's the third video in a series of three:
"Eric at TiddlyWest".
The two first videos are Eric talking about TW concepts....
1) http://blip.tv/play/gtQ9vexsAg
2) http://blip.tv/play/gtQ9ve0NAg
3) http://blip.tv/play/gtQ9ve0vAg

Enjoy :-)

Cheers Måns Mårtensson
Reply all
Reply to author
Forward
0 new messages