struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: i18n/TextProvider issues
Date Fri, 11 Apr 2008 06:13:26 GMT

Don Brown wrote:
> Sounds good.  Are there any performance implications?
>
> Don
>
>   
According to https://issues.apache.org/struts/browse/WW-1681 the 
performance implications are very significant (significantly improved).

getText(String) invoked via OGNL and and getText(key, defaultValues, 
args) invoked via Text are essentially identical in the default 
implementation (TextPrroviderSupport) as both invoke 
LocalizedTextUtil.findText(). The improvement comes down to iteration 
through the stack to find a class vs ognl expression evaluation plus 
iteration through the stack to find a method.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message