-
|
Hi Everyone! I recently stumbled into some issues. Deploying broke the bot due to messages getting lost. So i started debugging, and found that my server takes considerably more time to send messages than my dev machine. On one hand this makes sense, since the server has an i7-7700 and is quite old. But i would still expect sending messages to be a tad faster than this. Timing yielded this:
The entire call requires roughly 8 seconds, with starting the vm using 1. I assume the remaining 7 are taken up by the command itself. The same call (same signal-account) on my dev-machine takes 4.4 seconds, startup ~.7 and the call roughly 3.6 seconds. Since the bot only starts the cli in json-mode once, the startup is neglible, but sending is not. Does anyone have other ideas if i can speed up signal-cli? Would graalvm help? Does the cpu require some extensions like avx to improve speeds? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
Additionally, i have now deployed the same code to a pi 4. The code i am using deletes 4 polls, and shows 4 polls, which takes roughly 15 seconds. The time between messages is extremely spotty. On the pi 4, it takes roughly 4 seconds, and the timing looks extremely consistent and "feels" very fast. I cannot really explain the difference, especially since the pi should be way slower than the i7. It would be really great if i could get better insight in what is going on. |
Beta Was this translation helpful? Give feedback.
I have now moved the config to a "not-decades-old-relatively-new"-external harddrive, and now storing takes ~10ms. (i have seen values between 8ms and 15ms, all perfectly fine)
Moving the config-folders solves my problem with signal-cli.
It opens a lot more questions about my ssd and overall setup. Great. But entirely a me-problem :D
Thank you for your help!