I have a very simple app that uses serversockets. Clients connect,
send short messages, which the app then sends to all connected clients.
Basically it looks for a message termination character in a buffer,
grabs the full message and loops through the open connections and
writes.
On Windows and Mac the performance is stunningly identical. On Ubuntu
it is taking ten times as long to process and transmit a single
message to a single client. At the moment I am testing this from the
client side... timing the interval between sending and getting a
response back. Mac and Windows are consistent, Ubuntu is all over the
place and always x9+ times more.
Has anyone else had an experience like this? I am not sure what there
is to modify... a couple instr calls and a for next loop. I have
already used the pragma statements around the loop. There is no gui
updating going on. Not sure if I should be breaking down the sockets
side or the string parsing. I would think the sockets are all based on
the same core.
Regards,
Todd Fantz
todd@fantz.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|