Splitting off from here…
I did some tests…
There’s a manufacturer’s software (an Editor) that connects to a piece of hardware. They communicate via TCP.
When the software is connecting directly to the hardware, it takes 36 seconds to synchronize. (Passing around 1mb of data)
Speed is the same on MacOS or Windows.
I created a test app in Xojo, using 2 TCPSockets, one receiving/sending from/to the Editor and one doing the same for the hardware. Each receive a packet and send to the other, with no processing in-between, and it takes around 7 minutes! to synchronize. Again, same speed on MacOS or Windows.
I then created an app in VB.NET on Windows, doing the same thing that the Xojo App is doing, passing the packets back and forth with no processing, and it takes only 36 seconds to synchronize, essentially adding no overhead to the communication at all. I wasn’t even using threads!
Clearly the Xojo TCPSocket is REALLY slowing things down. (Like 10x)
Would MBS Sockets work faster?