TW single file 5.1.19 upgrade saved file size

94 views
Skip to first unread message

A Gloom

unread,
Aug 2, 2019, 6:31:24 PM8/2/19
to TiddlyWiki
When upgrading TW single file, from 5.1.17 to 5.1.19 on Windows8.1/latest Firefox, I noticed a sizeable file size decrease from 4,926 kb to 4,430 kb

all I noticed tiddlers numbers wise (from control panel, info tab)

Number of tiddlers: 1642 (pre-upgrade)/ 1642 after
Number of tags: 512 / 512
Number of system tiddlers: 2252 / 83
Number of shadow tiddlers: 1813 / 1881
Number of overridden shadow tiddlers: 30 / 28

No content appeared to be lost.  Even all my custom non-core system (given the $:/ prefix) tiddlers (macros, stylesheets, cloned, modified, given a special $:/.rags tiddler title prefix core tiddlers) all transfered over.

I wasn't running any installed plug-in's or modified core system tiddlers other than 1 manual edit to the vanilla stylesheet and those changed by control panel settings.

I figured it might be old temp tiddlers being left out-- the drastic decrease in system tiddlers, but in the upgrade tiddler list I noticed a lot of state tiddlers included.  I figured the file size will build back up as the TW is used and "use settings" made during use get restored.

Strange idea-- would this be a way to "refresh" a TW, clearing built up bloat?  Can an upgrade be used on the same version TW again?

TonyM

unread,
Aug 2, 2019, 7:12:10 PM8/2/19
to tiddl...@googlegroups.com
The change in the size could be the result of recoding/refactoring the core code to reduce the size and or improve performance.

New versions need not require more bytes, just smarter bytes and it is a sensible exercise to do this whenever possible.

If this is the case it is removing bloat in the code the first time, and you will not see it in subsequent "Re-Upgrades". 

If this were not the case however It would be better to build it into the wiki so you can "clean up" from inside a wiki directly.

Regards
Tony

A Gloom

unread,
Aug 2, 2019, 9:39:52 PM8/2/19
to TiddlyWiki
Tony,

You're probably correct, this was a jump of 2 versions (tho from what I understand, .19 was mainly a bugs fix).


The decrease of system tiddlers (2252 to 83) counted in control panel> info tab, I believe was a result of state tiddlers being left out of the upgrade-- using the list feature of control panel> info tab, I noticed they where missing in the upgraded wiki.

In More tab> explorer, I noticed:

the core tiddlers went from 676 to 720

state tiddlers went from 2172 to 11, which supports my hunch

-- all "tab--" state tiddlers were missing, as well as custom name state tiddlers, I assume they'll reappear as I use tiddlers having tabs (macro) and a state gets set by their use

-- all the "$:/state/edit-title" tiddlers I saw in the upgrade import list were not actually imported, can't find them with advanced search

TonyM

unread,
Aug 3, 2019, 12:46:25 AM8/3/19
to TiddlyWiki
When you save a wiki there is a filter in which you can exclude temp or other tiddlers if desired.

Thanks for sharing your observations.

Regards
Tony

A Gloom

unread,
Aug 3, 2019, 2:15:23 AM8/3/19
to TiddlyWiki
When you save a wiki there is a filter in which you can exclude temp or other tiddlers if desired.

Thanks for sharing your observations.


I shall check into that, that was quite a few "$:/state/edit-title" tiddlers that spparently weren't needed.
Reply all
Reply to author
Forward
0 new messages