Python or C++ for serial communication
I've created a node which uses the PySerial library to communicate with an XBee module wirelessly. The only occasional issue I encounter is dropped communication, which I resolved by just setting the node to auto-respawn in the launch file.
It did get me thinking though. I'm not a programming expert so I'm not sure what sort of overhead behind the scenes I'm encountering when I use python to perform serial communication.
My question is would it be better in the long run to use C++ for serial communication (ie would computations be faster, more reliable, etc.) over Python?