file size reduction

100 views
Skip to first unread message

SveRo

unread,
Apr 10, 2018, 12:55:12 AM4/10/18
to TiddlyWiki
Hi all,

i've got TW5 v. 5.15 running.
No includet PDF's, pics or something like that but the file has > 10Mb.

I've tested some pluginns in the past, but removed the after testing.
Just the "checklist plugin" is acive!

Is there any possibility to check form what part the file size is comming?

OR...

Can i do "mass -export"of mytiddler to set up a comletely new TW5,
but with the side-bar configuration i established?

Many thank for your reply's

Best Regards
Sven

Mat

unread,
Apr 10, 2018, 1:06:02 AM4/10/18
to TiddlyWiki
The matter felt familiar so I checked one of my main TWs for "sizesort" and, sure enough;

<$list filter="[!is[system]!is[shadow]!lsort[]]">
<$macrocall $name="length" tiddler={{!!title}}/>
<$link><$view field=title/></$link>
<br>
</$list>

Now, that "length" macro is apparently from this plugin by Thomas Elmiger:

$:/plugins/telmiger/EditorCounter/counter.js

do a search and you'll probably find it.

After those things were made, we now have a "count" filter operator. Maybe that can be used instead to not depend on that separate plugin... but on the other hand it might be much slower, I have no idea.

<:-)

SveRo

unread,
Apr 10, 2018, 1:18:38 AM4/10/18
to TiddlyWiki
OK, reduced about 50% thankyou

Diego Mesa

unread,
Apr 10, 2018, 12:04:01 PM4/10/18
to TiddlyWiki
Hey Mat,

What is lsort? I dont seem to have that

Mark S.

unread,
Apr 10, 2018, 12:22:45 PM4/10/18
to TiddlyWiki

Mat

unread,
Apr 10, 2018, 12:45:47 PM4/10/18
to TiddlyWiki
Aha, didn't even notice the "lsort". Yes, as Mark points out it is someting from Stephan Hradek found here:

https://groups.google.com/forum/#!msg/tiddlywiki/hr75FTeEL_g/Zq9c1OJz6KkJ

Investigating it closer, I'm realizing I probably found the solution from


where Tobias gives cred to Stephan.

<:-)
Reply all
Reply to author
Forward
0 new messages