Hi
I run some test to keep track of response time of a grails app.
I use the layout-view framework of grails in this way:
In a controller I determine what view and layout to use
Then I render a genericView with a code like this:
So this genericView do all the magic.
I create a Performance filter that track how much time takes between afterController and beforeController (controller time) and between beforeController and renderView ( view Time).
In a layout I have a lots of <g:pageProperty name="">
tags and in the view I have the same number in <content tag="..">
that nested includes <g:include controller="..."/>
.
This works perfectly and it gives me the posibility to reuse layouts (as dispositions of html parts) and views (mappings between dispositions and real content).
When I take the mean in the view time it takes something like 35 milliseconds to do all the includes.
I think that is a lot.
Do you know any other useful alternatives to the grails framework to include and ensamble the view when it renders?
Or maybe I have to use the framework in a better way?
EDIT: I just note that the time is spend in <g:include controller="..."/>
.
I include 4 controller in a view.
The controller and actions included only have a render "something"
And the times are like this:
main controller: controller time: 3.98 view time: 43.87
Others controllers (included in the main view): total: 15.55
So 4 include view takes kind of 28.32 milliseconds to run!
Any pointer would help.
Thanks in advance.