commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@adeptra.com>
Subject Re: jexl again...
Date Wed, 12 Jun 2002 01:31:14 GMT
On 6/12/02 7:24 AM, "dion@multitask.com.au" <dion@multitask.com.au> wrote:

> 
> Is there a performance benefit other than the object creation?

Yes - the expression that you cache contains a pre-parsed syntax tree, which
is created when the factory makes the Expression object.

While it's going to be small in the grand scheme of things, as a percentage
it will be quite beneficial to cache them.  You also keep out of the
factory, which has serialized access to the parser at the moment, so if you
are doing this in a concurrent environment, you get that too...

> --
> dIon Gillard, Multitask Consulting
> Work:      http://www.multitask.com.au
> Developers: http://adslgateway.multitask.com.au/developers
> 
> 
>                  
>                   "Geir
>                   Magnusson Jr."       To:     Jakarta Commons Developers List
> <commons-dev@jakarta.apache.org>
>                   <geirm@adeptra       cc:
>                   .com>                Subject:     Re: jexl again...
>                  
>                   06/12/02 11:16
>                   AM
>                   Please respond
>                   to "Jakarta
>                   Commons
>                   Developers
>                   List"
>                  
>                  
> 
> 
> 
> 
> On 6/12/02 7:06 AM, "dion@multitask.com.au" <dion@multitask.com.au> wrote:
> 
>> 1) Are expressions cacheable? i.e. if I create an expression and execute
> it
>> once, can I store it away in a Map and reevaluate it, rather than
>> recreating it?
> 
> Yes
> 
> --
> Geir Magnusson Jr.
> Research & Development, Adeptra Inc.
> geirm@adeptra.com
> +1-203-247-1713
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:commons-dev-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message