[MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

J Silver jsilverman2 at gmail.com
Fri Nov 23 09:54:27 PST 2012


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



More information about the MacRuby-devel mailing list