Hi,
I'm currently having difficulties with a rather large TW that I'm constructing, containing roughly 25,000 tiddlers (it's a specialised encyclopedia). Total file size is less than 20Mb; the majority of the tiddlers are small, but contain structured data in custom fields. I'm using TW version 5.1.13 and Firefox 50.1.0 under OS X 10.12.2. The machine I'm using has an SSD.
If I treat my TW as a single file, I get save times in excess of 120s (autosave is therefore not an option).
If I use node.js as a backend, opening or closing each tiddler typically takes around 50s (the server console suggests that much of this time is spent on the save task for $:/StoryList). During this time, the browser is unresponsive.
I start learning TW to use as personal wiki notebook. Potentially, I would have more than 250k tiddlers over time. So, I need to know the answer to this question. But, first, is it possible to open and save time to be that long as long as we are saving and opening a few tiddlers at a time? Also, Nick, are you opening and editing tiddlers in bulk or a few?
I have suggested in a couple of times to adopt a lore asynchronous paradigm ,which will not block the user interface at least.
But I think it is an almost impossible task because how deeply integrated the synchronous behavior is. Probably a total rewrite would be necessary
Regards
Do you use view templates ? If the answer is yes then you probably use the list widget a lot,which iterates all the tiddlers synchronously several times. Add some hundreds of tiddlers and some dozens of lists and it will grow exponentially in time.
Hi,
In case anyone finds this thread later, it might be worth
mentioning that extensively using tags puts a strain on large
wikis. Using fields instead (everywhere where possible/relevant)
can significantly improve the overall performance. see a case
study at:
http://erwanm.github.io/tw-community-search/#TagsOptimizations
Erwan
Hi,
I'm currently having difficulties with a rather large TW that I'm constructing, containing roughly 25,000 tiddlers (it's a specialised encyclopedia). Total file size is less than 20Mb; the majority of the tiddlers are small, but contain structured data in custom fields. I'm using TW version 5.1.13 and Firefox 50.1.0 under OS X 10.12.2. The machine I'm using has an SSD.
If I treat my TW as a single file, I get save times in excess of 120s (autosave is therefore not an option).
If I use node.js as a backend, opening or closing each tiddler typically takes around 50s (the server console suggests that much of this time is spent on the save task for $:/StoryList). During this time, the browser is unresponsive.
I also fairly often see the following error, typically when opening the TW when the server has already been running for longer than a few minutes.
RangeError: Maximum call stack size exceeded
at Logger.log ($:/core/modules/utils/logger.js:29:108)
at Syncer.dispatchTask ($:/core/modules/syncer.js:495:15)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:417:9)
at $:/core/modules/syncer.js:425:27
at $:/core/modules/syncer.js:505:4
at FileSystemAdaptor.loadTiddler ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:201:2)
at Syncer.dispatchTask ($:/core/modules/syncer.js:496:20)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:417:9)
at $:/core/modules/syncer.js:425:27
at $:/core/modules/syncer.js:505:4
Any and all suggestions would be welcome at this point, including "you fool, you're using TW for things that it wasn't designed for".
Thanks, Nick
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ea3947a7-c49f-4102-9b2b-a24e05810f02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The entire bible broken out by chapters only runs around 6 megs, and can work reasonably well on phones and tablets.
I'm thinking that if people have texts larger than that then must be including images which quickly inflate the size. One could externalize the images to reduce the size of the HTML component. This is what epub, mobi, and MHT do. They have the text in a set of HTML files and the images separate -- but the whole thing is zipped up into an archive format so it seems to be just one file.
On 13 Mar 2017, at 12:35, @TiddlyTweeter <tiddly...@assays.tv> wrote:FYI, for test purposes I work on the novel Great Expectations by Dickens. Its to serve a project I head up so the use case need is quite well defined. I'm chunking it to 1 para = 1 tiddler. This will permit the kind of fine-grained bookmarking & annotation needed.
Its created via iterative use of regular expressions to the input text. Tiddlers are created directly in tid format, rather than going via JSON, then injected into a final TW. Its about 40,000 tiddlers. About 4.5 Mb size in an "empty" TW5. Currently it has far more added fields than needed because I'm still trying to work out the best way to organise the tiddlers. Final size could probably be reduced to about 3 Mb.