<?xml version="1.0" ?>

<kc>

<title>GNUe Traffic</title>

<editor contact="mailto:psu@burdonvale.co.uk">Peter Sullivan</editor>

<issue num="117" date="22 May 2006 12:00:00 -0800" />

<headquote>&quot;<i>nah, I think the definition of &quot;programmer&quot; is pretty loose these days
- after all, jamest claims to be one</i>&quot;</headquote>

<intro>
  This newsletter mainly covers the the #gnuenterprise IRC channel, 
  with occasional coverage of the three main mailing lists 
  (gnue-announce, gnue and gnue-dev) for the 
  <a href="http://www.gnuenterprise.org">GNU Enterprise</a> 
  project.
</intro>

<section 
   title="Performance tuning of Application Server"
   subject="[IRC] 16 May 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-05-16"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="16 May 2006 12:00:00 -0800"
   enddate="18 May 2006 12:00:00 -0800">

<topic>Application Server</topic>

<p>Further to 
<kcref title="Performance issues with Application Server and XML-RPC" subject="[IRC] 10 May 2006" />, 
Malek Hadj-Ali (lekma) reported <quote who="Malek Hadj-Ali">the script that 
use to take 4min+ is now</quote> under 2. There were still some
<quote who="Malek Hadj-Ali">strange bugs in http 1.1 with hessian</quote> 
and <quote who="Malek Hadj-Ali">the request still eats 300Meg of 
memory</quote>. But, as Reinhard M&#252;ller (reinhard) noted 
<quote who="Reinhard M&#252;ller">at least for speed we're not magnitudes 
away any more</quote>. Malek did further testing, and noted that a 
hessian dump run independantly took a fraction of a second - the 
same hessian dump via the GNUe Application Server took 26 seconds. 
Reinhard noted that it was not unusual to see odd results like this when 
profiling python code - <quote who="Reinhard M&#252;ller">I suspect 
all the hidden python magic like garbage collection and the like 
has a big impact on performance - and the decision when exactly 
python runs the garbage collection might depend on conditions that 
we as humans would regard as &quot;random&quot;</quote>. Jason Cater
(jcater) wondered if using unicode, or the presence of the python psyco 
module was making a difference, but neither of these proved to be the 
case. Both Jason and Reinhard volunteered to have a look at Malek's 
code to see if they could spot anything.</p>

<p><a href="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-05-17">The
next day</a>, Malek reported that he had 
<quote who="Malek Hadj-Ali">figured it out - a bug in hessianlib 
that shown itself when dumping instances</quote>. He did some 
more tests with various different combinations (using XML-RPC, 
hessian and direct database access, both with and without 
GNUe Application Server) and found that hessian was still 
<i>somewhat</i> faster than the original XML-RPC protocol 
that GNUe had been using previously, but felt a bit frustrated 
that it should be <i>significantly</i> faster - as 
<quote who="Malek Hadj-Ali">pure dumps/loads is around 3 times 
faster in hessian than xmlrpc</quote>.</p>

<p><a href="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-05-18">The 
next day</a>, Reinhard said he would apply Malik's patch 
<quote who="Reinhard M&#252;ller">so others can have a look and a try</quote>. 
Malek explained that his patch fixed <quote who="Malik Hadj-Ali">a 
bug withe the hessian lib - but that don't solve all performance 
issue</quote>. Jason noted that his profiling tests 
conmfirmed this - <quote who="Jason Cater">I wrapped the calls into the 
hotshot profiler the other day - and noticed that most of the wait was 
inside of the networking code of hessianlib.py</quote>. Malek pointed  
out that <quote who="Malek Hadj-Ali">appserver adds a non negligeabable 
overhead in ClientAdapter and ServerAdapter</quote>, regardless of 
whether hessian or XML-RPC was used, <quote who="Malek Hadj-Ali">but 
it tries hard to balance this overhead with agressive http 1.1 
connections - so all in all it's not that bad.</quote>.</p>

</section>

<section 
   title="Layout in GNUe Forms with wx 2.6 driver"
   subject="[IRC] 22 May 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-05-22"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="22 May 2006 12:00:00 -0800"
   enddate="22 May 2006 12:00:00 -0800">

<topic>Forms</topic>

<p>James Thompson (jamest) asked <quote who="James Thompson">how stable 
is forms head? and the wx driver in particular - 2.6</quote> as 
<quote who="James Thompson">the dropdowns in the old wx driver have 
started causing us lots of issues</quote>. Reinhard M&#252;ller (reinhard) 
replied <quote who="Reinhard M&#252;ller">head should be perfectly usable, 
and wx26 should be possibly the most stable driver of all</quote> 
(as previously discussed in 
<kcref title="Reducing the number of user interface drivers for GNUe" subject="[IRC] 16 Mar 2006" />
and similar threads). But he cautioned that this did not mean 
<quote who="Reinhard M&#252;ller">that you *won't* hit bugs...</quote>. 
James tried it, and noted <quote who="James Thompson">2.6 computes 
spacing a bit different than 2.4 did doesn't it</quote>? Johannes Vetter 
(johannesV) explained <quote who="Johanes Vetter">spacing depends on the 
biggest control possible - depending on the platform used</quote>. 
Reinhard clarified <quote who="Reinhard M&#252;ller">it just takes standard 
entry size, standard button size, standard dropdown size - and takes the 
biggest of them - so no control will get chopped</quote>. James was concerned
that this <quote who="James Thompson">really increases the horizontal space 
usage though - like on a rows=10 - it looking like whitespace is 
doubled</quote>.</p>

<p>Reinhard wondered <quote who="Reinhard M&#252;ller">whether widgetWidth 
and widgetHeight point sizes could be a configuration option - and if 
set override the auto dectected widget sizes</quote>. Johannes said that 
this <quote who="Johannes Vetter">should be handled quite well if there 
are layoutmanagers ...</quote>. But James noted that this would also 
need to take account of what X themes the user was running - 
<quote who="James Thompson">as for whatever reason themes effect forms 
here - a form that fits on user A's screen doesn't on User B's</quote>.
Reinhard agreed <quote who="Reinhard M&#252;ller">that the only real solution 
is layout management - a button simply *isn't* of the same size as an 
entry</quote> for example.</p>

</section>


<section 
   title="Allowable typecast attributes for GNUe Forms"
   subject="[IRC] 22 May 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-05-22"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="22 May 2006 12:00:00 -0800"
   enddate="22 May 2006 12:00:00 -0800">

<topic>Forms</topic>

<p>James Thompson (jamest) noted that <quote who="James Thompson">the two 
biggest things stopping me from opening forms are</quote> lack of support 
for integer and boolean typecasts - the typecast-attribute only seemed to 
support date, text and number as of time of writing. He asked 
<quote who="James Thompson">is there a reason we don't don't support 
typecast= boolean or integer in</quote> GNUe Form Definitions? 
Reinhard M&#252;ller (reinhard) replied <quote who="Reinhard M&#252;ller">I 
have no idea, the set of possible values was defined ages ago - but it 
was never checked. I am not opposed at all to add any other values to 
the list as you see fit</quote>.</p>

</section>

</kc>