Replies: 2 comments 5 replies
-
Also persistence. Have you set MQTTCLIENT_PERSISTENCE_NONE ? The Pyhon client doesn't have any, as far as I'm aware. The most optimal solution might be to signal the send_sem/send_cond in the MQTTAsync_writeContinue and MQTTAsync_writeComplete callback functions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a strange issue. I am using paho-mqtt-cpp over -c to publish/subscribe.
I am running on Ubuntu 23.10, over TLS.
I am sending through a 2.5mbyte file 10x, in 10 different threads.
On python to do the same it takes ~80ms per image, while on C++ it takes 3x more.
If I use 1.3.12 AND leave “poll” enabled instead of “select” it will slow further down the transmit 3x, ending up being 8-9x slower than the Python implementation.
I have replaced the server/subscriber code with Python as well, didn’t help much, so it appears the publish code itself is that much slower.
Between python and C++ I have the same connection, QOS, etc setup.
Any idea what is going on?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions