directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] [Updated] (MAVIBOT-11) Add a cache to replace the weakReferences
Date Tue, 12 Nov 2013 18:12:19 GMT


Emmanuel Lecharny updated MAVIBOT-11:

    Fix Version/s:     (was: 1.0.0-M2)

> Add a cache to replace the weakReferences
> -----------------------------------------
>                 Key: MAVIBOT-11
>                 URL:
>             Project: Mavibot
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M1
>            Reporter: Emmanuel Lecharny
>            Assignee: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 1.0.0-M3
> We currently use a WeakReference to hold elements in memory. This is convenient, but
when we have exhausted the memory, the GC takes forever to reclaim the weakReferences, slowing
down the code up to a point it's unusable.
> We should rather use a LRU Cache to store a limited amount of elements, and make it configurable.
> We should keep the WeakReferences for those having enough memory. (to be discussed)

This message was sent by Atlassian JIRA

View raw message