It looks like my original post doesn't appear in the email exchange (while visible in Google groups UI). That probably explains some some questions and suggestions (which I already addressed in the first post)
On Monday, June 3, 2019 at 12:03:49 PM UTC+3, solex wrote: > > Hi all, > > I am rather new to TiddlyWiki, and I've been doing some experiments > recently with the automatic importing of data to a file-based wiki. > But I found that when serving a wiki with a few thousand tiddlers, the > node server crashes with the following error, while in the middle of > dispatching "load" tasks: > > RangeError: Maximum call stack size exceeded >> at Console.(anonymous function) >> (internal/console/constructor.js:243:9) >> at Console.log (internal/console/constructor.js:283:24) >> at Logger.log ($:/core/modules/utils/logger.js:32:25) >> at Syncer.dispatchTask ($:/core/modules/syncer.js:515:15) >> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9) >> at $:/core/modules/syncer.js:445:27 >> at $:/core/modules/syncer.js:525:4 >> at FileSystemAdaptor.loadTiddler >> ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:193:2) >> at Syncer.dispatchTask ($:/core/modules/syncer.js:516:20) >> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9) > > > My system: > tiddlywiki: 5.1.19 > node: 11.9.0 > MacOs: 10.13.6 > > I experimented with the total number, and found that the issue occurs > somewhere between 1500 and 2000 tiddlers. It looks like the content doesn't > matter: the problem occurs even with the simplest possible tiddlers (title > only). > > I also disabled the TW's logger just to rule out a problem in the logger > itself, and the problem persists. > > To reproduce the error: > > 1. Create a fresh "server edition" wiki > 2. Populate with 2000 tiddlers (I used a basic script for that) > 3. Start a server with a "listen" command > 4. Open the TW's page in the browser > > > 2000 tiddlers doesn't seem like a very large number for an in-browser > wiki, nor it should be a problem for a server per se. I believe the > bottleneck is somewhere in the synchronization process, but so far I wasn't > able to pinpoint it exactly. > > Has anyone experienced the same problem and is there is anything that can > be done to improve the sync performance? > > (Also, please let me know if this sort of question should be posted to > TiddlyWikiDev) > > Thanks! > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@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/a790148a-f303-42ba-a48f-dc76f1954952%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.