Too slow on Android+Termux

1,000 views
Skip to first unread message

Carlos Pita

unread,
Feb 28, 2017, 6:41:37 AM2/28/17
to TiddlyWiki
Hi all, I'm trying to use tiddlywiki 5.1.13 with node 6.10.0 on android marshmallow, running inside a very up-to-date termux (yesterday update). But even the --help and --version options make tiddlywiki freeze for about 1 minute before printing anything to stdout. Is this a known issue, is anyone else experiencing it? It's typical of commands running on termux to run a bit slower than in my laptop, but not that slow.

Thank you in advance
--
Carlos

Xavier Cazin

unread,
Feb 28, 2017, 8:58:40 AM2/28/17
to tiddl...@googlegroups.com
Hi Carlos,

From my experience, Node.js is quite slow to start in Termux (depending of the resources left by your other applications, it may take up to one minute to load completely). But once it is up and running, then it serves the wiki quite fast, and is robust enough to keep running during several days.

Regards,
Xavier.

-- Xavier Cazin


--
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+unsubscribe@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/19370061-f6b8-46cc-8c4c-6220cc45aa6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Pita

unread,
Feb 28, 2017, 9:14:06 AM2/28/17
to tiddl...@googlegroups.com
Hi Xavier, thank you for you prompt answer. I've no problem with the
slow startup per se, but when syncing from my pc I will have to
restart tiddlywiki for the changes to have any effect, so syncing
would become a > 1 minute operation. How are you doing that? Is anyone
really using node on android to mirror their pc tiddlywiki? Or the
thing to do is to export/import single file tiddlywikis from/to the
node server running at the pc?

Cheers
--
Carlos

Xavier Cazin

unread,
Feb 28, 2017, 9:37:20 AM2/28/17
to tiddl...@googlegroups.com
Carlos,

Most interesting question! 80% of the advantage of running TW5 on my phone is that I can use the wiki directly from my local networks, so that I don't have to sync it at all between my other hosts, just refer to it's IP and port and use it from any browsers. Of course, you also need a backup mecanism from your phone to some external host, but that's a different issue.

There is one drawback though: this is of course not secure, because
  1. your wiki becomes available to everyone on your local network
  2. the data circulates in clear over the network
So one needs to find a way to setup an https proxy on Termux, that would only accepts incoming requests from selected IPs. I know how to do that with Apache, but since only lighttpd is available on Termux, I didn't explore that option yet: I'm obviously not the paranoid kind of guy.

In some situations (train/plane), the problem can be solved by setting up an ad hoc network between the phone and the host, but this is clearly not ideal if you also want to access the Internet and your mobile data plan is limited :-)

Regards,

-- Xavier Cazin

--
Carlos

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Carlos Pita

unread,
Feb 28, 2017, 9:46:49 AM2/28/17
to tiddl...@googlegroups.com
Hi Xavier, I understand, it's an interesting (!!!) approach I haven't
think of before. I don't have a phone, I just use a tablet and I like
to turn wifi off when it's dozing. How hard is the battery drain of
constantly running the tiddlywiki server?

Cheers
--
Carlos

Xavier Cazin

unread,
Feb 28, 2017, 10:15:11 AM2/28/17
to tiddl...@googlegroups.com
Carlos,

It consumes almost nothing. Especially if you compare to most other apps that need the screen to be switched on in order to be useful :-)

X.

-- Xavier Cazin


Cheers
--
Carlos

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages