<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ascii" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Following Chris' advice to implement a read strategy, I thought I would
give it a go.<br>
<br>
In the first stages of optimising Magma to serve pier pages.<br>
<br>
the figures are pretty bad without a readStrategy. I put a test
'information' page page 10 levels down the url path, and following a
rendering of that page we get the last item in the log at:<br>
<br>
<b>401 [14141] Read(100) </b>'&lt;b&gt;Test Suites:&lt;/b&gt; Pier is
heavily tested. There are more than 1000 ...etc...<br>
<b>402 [14147] Read(101) </b>'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'<br>
<br>
That is 101 proxy materialisations in 14.1 seconds. If you add the 10
seconds that it takes to obtain a MagmaSession (in the non-shared
WAMagmaSession) then that is a long time to wait for a web page.
(WAMagmaSharedSession is pre-cached).<br>
<br>
not so good!<br>
<br>
After carefully&nbsp; implementing a readStrategy<br>
<br>
The final lines of the log now look like this!<br>
<br>
<b>312 [311] Read(3) </b>a PRDocument<br>
...<br>
...<br>
<b>367: [335] (7/7/8) PRText-text = '&lt;b&gt;Test Suites:&lt;/b&gt;
Pier is heavily tes...etc...</b><br>
&nbsp;<br>
<br>
That is 3 reads, which take ~30-80ms to apply the read strategy and
~100ms to fetch from magma, each. Since the final read has not actually
happened at the time of this last log item, I make that roughly 430ms
to retrieve everything in this test page.<br>
<br>
The first read retrieves the whole path skeleton in one hit (not
entirely necessary)<br>
The second read retrieves the 'environment' document which pier uses as
its display and style template. The third read retrieves the desired
document, again in one hit.<br>
<br>
In practice it is likely that the 'path skeleton' and the
'environment'&nbsp; will remain cached in memory,&nbsp; so in general use,&nbsp;
100-150ms, to&nbsp; serve a page from Magma to Pier isnt bad going
especially as compared to the non-optimised results.<br>
<br>
Keith<br>
<br>
p.s. this is on a 700Mhz Pentium 3 machine with old slow 10G disk
drives.<br>
&nbsp;
</body>
</html>