[ 
https://issues.apache.org/jira/browse/JCR-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

angela updated JCR-1011:
------------------------

    Attachment: JCR-1011.patch

initial draft for an ItemCache interface and an example implementation that 
uses an LRUMap.
In addition the patch moves the ItemLifeCycleListening from the ItemManager to 
the ItemCache and enables the ItemManager to listen to creation of ItemStates. 
The latter would be required to take advantage of the Batch-Read mechanism, 
that not only creates ItemStates for the 'requested' Item. Up to now those 
states were created and attached to their hierarchy-entry (both only being 
addressed by weak references).

Apart from the tests present with the build, i didn't yet perform any 
sophisticated tests, that measure the effect of the ItemCache.

comments?

> JCR2SPI: add configurable cache for Item instances (ItemManager)
> ----------------------------------------------------------------
>
>                 Key: JCR-1011
>                 URL: https://issues.apache.org/jira/browse/JCR-1011
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr2spi
>            Reporter: angela
>         Attachments: JCR-1011.patch
>
>
> Currently the ItemManager implementation uses a simple map with weak keys 
> (ItemState) and weak values (Item) as cache.
> Marcel recently suggested to replace this with a more sophisticated cache 
> mechanism that can be configured.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to