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_controller.rb#L90

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

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

Reply via email to