Hello all :)

I'm using Cocoon Profiler to check some performance results but i'm having some difficulties interpreting the results.

It seems ,for instance, that having the caching mechanism turned on or off
on a pipeline that generates pdf doesn't make any difference in the generation time.

Generate PDF pipeline
<map:pipeline type="profile-caching">

<map:match pattern="doc.pdf">
<map:generate type="jx" src="context://reports/forms/reports_success_jx.xml"/>
<map:transform src="context://reports/resources/page2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>

<map:match pattern="*.css">
<map:read src="{1}.css" mime-type="text/css"/>
</map:match>

<map:match pattern="*.js">
<map:read src="{1}.js" mime-type="text/javascript"/>
</map:match>

</map:pipeline>

It also seems that on a pipeline that uses cforms the only advantage of caching is avoiding loading coutless times the js and css from the mattkreuse library. I believe this is the behaviour i'm seeing because when having the pipeline caching on, the profiler doesn't report load times of the associated css an js files of the cforms.

The pipelines i'm using are

<!-- Loading cforms widgets -->
<map:pipeline type="profile-caching">
<map:match pattern="form1.flow">
<map:call function="handleForm">
<map:parameter name="function" value="form1"/>
<map:parameter name="form-definition" value="forms/form1.xml"/>
</map:call>
</map:match>

<map:match pattern="do-*.flow">
<map:call function="do_{1}"/>
</map:match>

<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>

<map:match pattern="continue">
<map:call continuation="{request-param:continuation-id}"/>
</map:match>

</map:pipeline>



<!-- displaying the cform ... -->
<map:pipeline type="profile-caching">

<map:match pattern="*-display-pipeline.jx">
<map:generate type="jx" src="forms/{1}_template_action.xml"/>
<map:transform type="i18n">
        <!--map:parameter name="locale" value="en-US"/-->
</map:transform>
<map:call resource="simple-page2html">
<map:parameter name="file" value="forms/{1}_template_action.xml"/>
</map:call>
<map:transform src="resources/forms-samples-styling.xsl"/>
<map:serialize/>
</map:match>

</map:pipeline>



TIA,
CarlosN.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to