You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adrian Gonzalez <ad...@yahoo.fr> on 2011/09/08 14:50:31 UTC

Re : Re : Re : Re : Re : Re : Performance issue in simpleTags and tagfiles

Thanks very much Mark for all the work on this issue !

Do you know which version of tomcat will contain the improvements you've made ?
 
----- Mail original -----
De : Mark Thomas <ma...@apache.org>
À : Tomcat Users List <us...@tomcat.apache.org>
Cc : 
Envoyé le : Jeudi 8 Septembre 2011 14h24
Objet : Re: Re : Re : Re : Re : Re : Performance issue in simpleTags and tagfiles

On 08/09/2011 12:19, Adrian Gonzalez wrote:
> Thanks Mark !
> 
>> It should be possible to cache the ValueExpression per JSP page (in the PageContext)
> 
> Yes, but the PageContext life's span is more or less a user request, no ?

Correct. I should have said via the PageContext since that is all that
is available at the point where the cache would be used.

> In this case, ValueExpression caching will only be useful when exactly the same expression is used multiple times in the same JSP. And I agree that we are improving there a micro-benchmark.
> 
> What I was thinking was more about caching ValueExpression per class of JSP (i.e. one cache for edit_002dclassictag_jsp.java) - the cache being shared by all users of the application.

Agreed.

> WDYT ?

I think it is worth a try. I tried it and saw no improvement. If there
was going to be any benefit then this use case is where I'd expect to
see it so I think we can conclude there is little more to be done here.
It appears the overhead of the cache is roughly the same as the overhead
of creating the value expression (or both are so small that other
factors are dominating).

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Re : Re : Re : Re : Re : Re : Performance issue in simpleTags and tagfiles

Posted by Mark Thomas <ma...@apache.org>.
On 08/09/2011 13:50, Adrian Gonzalez wrote:
> Thanks very much Mark for all the work on this issue !
> 
> Do you know which version of tomcat will contain the improvements you've made ?

7.0.22 onwards.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org