Thanks Arlen for the suggestions: The first is that evalSandboxed (in boot.js) runs every module in a new > context. If you change it to all of them using one separate context which > you create outside the function, it should speed things up some. This one > may vary between node versions, but it's worth a shot. >
I located the file and function call you're refering to but I'm not familiar with Javascript, Node, or the internals of TiddlyWiki. Thus I don't feel confident trying to modify that code. Hopefully, a TiddlyWiki developer could look into this? > The second is loading the hundreds of tiddlers that make up the core. > There is a feature of the boot process that fixes this. Replace the > contents of the core folder with this file (assuming your using > Tiddlywiki5.1.21) > https://github.com/Arlen22/TiddlyWiki5-production/blob/master/5-1-21/core/plugin.info. > > That way it's just loading one file and doing a simple JSON.parse. > Alright, I replaced all content of /usr/local/lib/node_modules/tiddlywiki/core with that file you linked to. It seems to have shaved a few seconds off the startup time which remained over 56 seconds, so while it seems to help a bit, there seems to be a larger issue. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b987363a-17f2-4444-8bb9-d6aa43c7b841%40googlegroups.com.

