[plt-scheme] Announce: mzgtk2 release 2 version 2.6.10.002

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Sat Jan 6 14:30:29 EST 2007

Ray Racine schreef:
> First thanks.
>
> Second the build procedure worked clean for me on a fresh install on
> Linux Fedora 6.
>
> And finally, and unfortunately, I see 2 show-stoppers on using your
> mzgtk in earnest.
> 	1. Its very slow.  For example the simple editor takes 1-2 seconds
> before the key is displayed.  A button click takes a full second before
> a visual depression is apparent.  So slow there has to be something
> "wrong".  Maybe a Linux manifestation as I see you do your main dev work
> on Windows.
>   
That's interesting. I'm working on a DELL Latitude D800 system with 2GB 
of ram. It's a pentium M
system with 1.7Ghz cpu. However, I rarely see more than 100MB taken by 
mzscheme. Also
it never takes 100% CPU on my system. I'm testing MzGtk2 on a VMWare 
Server implementation
with Fedora 5. It has 700MB of RAM and it runs together with Win XP.

I'm seeing about 50% CPU burning in the linux vmware image. I must 
admit, that I didn't test
the new threads feature on the linux image. When I changed the line

    GTKCALL(g_timeout_add,(1,mzgtk2_mzscheme_thread_switching,NULL));

into

    GTKCALL(g_timeout_add,(10,mzgtk2_mzscheme_thread_switching,NULL));

(see the mzgtk2.c file (c/mzgtk2.c) at about line 850), the CPU usage 
dropped below 5%. Interesting
I hadn't thought that the difference in impact of a timer function on 
CPU behaviour would be that large
between Windows and Linux.

Could you test this for me on your system?

--Hans


> 	2. Even when running the simple window example, sitting idle, my system
> is spinning at 100% CPU.
>
> Its a pretty good system with plenty of horse power.  Wonder if the
> latest scheme_use_fuel() change is causing a continuous 100% spin loop.
>
> All in all I like what you've done so much I'm toying with the idea of
> porting what you have done over to the Larceny Scheme compiler.
>
> Ray
>
> On Sat, 2007-01-06 at 15:24 +0100, Hans Oesterholt-Dijkema wrote:
>   
>> Dear All,
>>
>> I've released mzgtk2, subversion 002, based on the header files of
>> Gtk+ 2.10.6. You should be able to compile mzgtk2 for Gtk+ 2.4.x
>> and up.
>>
>> Changes:
>>
>> Added support for PLT Scheme threads in the MzGtk2 distribution.
>> What MzGtk2 does is install a timer function in the event loop of
>> Gtk+-2.x which runs about every millisecond. This function calls
>> scheme_use_fuel() to give PLT Scheme the oppertunity to run threads.
>>
>> More information on:
>>
>> http://www.elemental-programming.org/wiki/mzgtk2-mzgtk2-making.html
>>
>> Screenshots:
>>
>> http://www.elemental-programming.org/wiki/mzgtk2-screenshots.html
>>
>> Changelog:
>>
>> http://www.elemental-programming.org/wiki/mzgtk2-ChangeLog.html
>>
>> Best wishes,
>>
>> Hans Oesterholt-Dijkema
>>
>>
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>     
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070106/b1fe4bbb/attachment.html>

Posted on the users mailing list.