commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [ognl] internal cache performance improvement
Date Tue, 07 Jun 2011 16:53:33 GMT
Salut Henri!!!
thanks a lot for your contribution!!! your suggestiona are indeed
really useful and having a look at the packages you pointed is a big
worth, thanks!!!
Anyway, everybody feels comfortable on working on the cache is
welcome, I'll fill an issue about it soit will be tracked, feel free
to assign to yourself and work on it!
Have a nice day, all the best!!!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Tue, Jun 7, 2011 at 10:43 AM, henrib <henrib@apache.org> wrote:
> Hi Simo;
> You might want to take a look at jexl in the
> org.apache.commons.jexl2.internal.introspection and
> org.apache.commons.jexl2.internal packages for ideas, more specifically at
> IntrospectorBase.
>
> Jexl caching is roughly a hashmap keyed by classes whose values are
> (essentially) hashmap keyed on method signatures pointing to methods. Cache
> access is synchronized and the whole cache is soft-refed so it can be
> evicted on memory pressure (or class loader change).
> To further reduce contention, the jexl interpreter caches method references
> in AST nodes through a volatile member; after the first execution, the
> script/statement retries to call the cached method. It will only go back to
> the class cache if the call is unsuccessful.
>
> At a higher level but I'm not sure it is practical, the
> org.apache.commons.jexl2.introspection package could be (re)used; it
> abstracts the whole introspection parts caching included.
>
> Hope this can help,
> Cheers
> Henrib
>
> --
> View this message in context: http://apache-commons.680414.n4.nabble.com/ognl-internal-cache-performance-improvement-tp3576227p3578976.html
> Sent from the Commons - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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


Mime
View raw message