<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ray Racine schreef:
<blockquote cite="mid1168105712.5213.9.camel@corwin.bravais.org"
type="cite">
<pre wrap="">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.
</pre>
</blockquote>
That's interesting. I'm working on a DELL Latitude D800 system with 2GB
of ram. It's a pentium M<br>
system with 1.7Ghz cpu. However, I rarely see more than 100MB taken by
mzscheme. Also<br>
it never takes 100% CPU on my system. I'm testing MzGtk2 on a VMWare
Server implementation<br>
with Fedora 5. It has 700MB of RAM and it runs together with Win XP.<br>
<br>
I'm seeing about 50% CPU burning in the linux vmware image. I must
admit, that I didn't test<br>
the new threads feature on the linux image. When I changed the line <br>
<br>
GTKCALL(g_timeout_add,(1,mzgtk2_mzscheme_thread_switching,NULL));<br>
<br>
into <br>
<br>
GTKCALL(g_timeout_add,(10,mzgtk2_mzscheme_thread_switching,NULL));<br>
<br>
(see the mzgtk2.c file (c/mzgtk2.c) at about line 850), the CPU usage
dropped below 5%. Interesting<br>
I hadn't thought that the difference in impact of a timer function on
CPU behaviour would be that large<br>
between Windows and Linux. <br>
<br>
Could you test this for me on your system?<br>
<br>
--Hans<br>
<br>
<br>
<blockquote cite="mid1168105712.5213.9.camel@corwin.bravais.org"
type="cite">
<pre wrap="">        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:
</pre>
<blockquote type="cite">
<pre wrap="">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:
<a class="moz-txt-link-freetext" href="http://www.elemental-programming.org/wiki/mzgtk2-mzgtk2-making.html">http://www.elemental-programming.org/wiki/mzgtk2-mzgtk2-making.html</a>
Screenshots:
<a class="moz-txt-link-freetext" href="http://www.elemental-programming.org/wiki/mzgtk2-screenshots.html">http://www.elemental-programming.org/wiki/mzgtk2-screenshots.html</a>
Changelog:
<a class="moz-txt-link-freetext" href="http://www.elemental-programming.org/wiki/mzgtk2-ChangeLog.html">http://www.elemental-programming.org/wiki/mzgtk2-ChangeLog.html</a>
Best wishes,
Hans Oesterholt-Dijkema
_________________________________________________
For list-related administrative tasks:
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>