[
https://issues.apache.org/jira/browse/DIRAPI-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848316#comment-13848316
]
Emmanuel Lecharny commented on DIRAPI-162:
------------------------------------------
The cache should be stored in the ThreadLocal storage to avoid the cost of
synchronization. Also we should pre-load some very common strings we are
frequently processing, and pin them in the cache.
> The CachingNormalizer class does not cache anything
> ---------------------------------------------------
>
> Key: DIRAPI-162
> URL: https://issues.apache.org/jira/browse/DIRAPI-162
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 1.0.0-M20
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0-RC1
>
>
> We waste a lot of CPU and memory by not caching elements. Most of the time,
> we will process elements like 'ObjectClass',
> '0.9.2342.19200300.100.1.1=admin,2.5.4.11=system' or 'ou=schema' tens f
> thousands of time, when they are static elements that will never change.
> A very basic and limited cache could save us a lot of processing.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)