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

Joshua Ballanco jballanc at gmail.com
Fri Nov 23 05:11:11 PST 2012

On this line:


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.



On Thursday, November 22, 2012 at 11:23 PM, J Silver wrote:

> http://cl.ly/image/2w0P1X3H1v3T
> http://cl.ly/image/3Q3j260q1s1F
> Want to report success using QtRuby library with the qtbindings gem.
> Internally, Able to use Signals and Slots through the advanced 
> techniques described around the web.
> Now have a working version of the chat available in the GlobalChat2 
> repository.
> https://github.com/jsilverMDX/GlobalChat2/tree/master/gc2-qtruby
> It runs on 1.8.7 and 1.9.3. It lacks many of the features of the 
> advanced MacRuby client coming soon to App Store.
> It uses QtDesigner for the GUI files with the UI loader and should run 
> natively on Mac, Windows and Linux.
> However, one thing. The MacRuby client is DAYS faster getting a big log 
> back from the server than QtRuby, and the signal is obviously not to 
> blame. This happens on both 1.9 and 1.8.7. Any ideas?
> jsilver
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org (mailto:MacRuby-devel at lists.macosforge.org)
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121123/80444a67/attachment.html>

More information about the MacRuby-devel mailing list