23 Nov
2012
23 Nov
'12
5:54 p.m.
I've created a ticket about this, 4.0 support planned. Thanks ! On 23/11/2012 05:11, Joshua Ballanco wrote:
On this line:
https://github.com/jsilverMDX/GlobalChat2/blob/master/gc2-qtruby/global_chat...
you're reading in a byte at a time. That, combined with the GVL, can seriously slow things down. You can either increase the number of bytes you're reading each loop or, ideally, use TCPSocket#read with a buffer. It's a bit more work to get right, but it should resolve your performance issues.
Cheers,
Josh