-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance question - retrieving and sending messages takes ~20 seconds #351
Comments
Two common causes for signal-cli's long response times are: a long java virtual machine startup time, and the lack of cryptographic entropy. To avoid the JVM startup time, run signal-cli as a daemon and use dbus to interact with it; see https://github.com/AsamK/signal-cli/wiki/DBus-service. To increase system entropy, packages like I don't know if |
Running signal-cli as a daemon is a good idea - thanks for that! I'll try it later today and will report back wrt. performance. My program mainly runs on a Raspberry (3), although it also takes about the same time on my Thinkpad T14. Just for your information, it's a cool little project I'm working on, basically I create a little assistant for me. I can (1) schedule messages, which are delivered at a certain time to a certain person (mainly used as reminder for myself), (2) keep track of my sport habits, (3) regularly (i.e. every few hours) check if certain websites (blogs and forums I follow, or for example, this very thread to be notified as soon as there is a comment) have changed, and if so I'll receive a signal message. In case anyone is interested in this project, please tell me, I'll be more than happy to provide the source code (I may even publish my git repo with a GPL license). |
After using DBUS, I can now receive messages near-instantaneous (<2 sec). Thank you very much for your help! |
First things first: I use this signal-cli inside a Python program via the subprocess module. However, executing the retrieve (
signal-cli -u <sender> receive [--json]
) command in a bash terminal still takes ~20 seconds to complete. Can anyone explain why this is taking so long?The text was updated successfully, but these errors were encountered: