commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Mouawad (JIRA)" <>
Subject [jira] [Created] (COLLECTIONS-557) LRUMap memory usage vs size
Date Mon, 23 Feb 2015 14:53:11 GMT
Philippe Mouawad created COLLECTIONS-557:

             Summary: LRUMap memory usage vs size
                 Key: COLLECTIONS-557
             Project: Commons Collections
          Issue Type: Improvement
          Components: Map
    Affects Versions: 3.2.1
            Reporter: Philippe Mouawad
             Fix For: 3.2.2

Currently LRUMap uses maxSize parameter to configure its maxSize.
This is not great for its memory usage.

For example I have a use case where I can't really guess the target maxSize of LRUMap so I
have put a big number .
In reality I end up having 380 elements but LRUMap uses 33 Mb of memory because it allocates
(as capacity) LOAD_FACTORxsupposed max size.

It would be nice to have the possibility to set maxSize apart making it unrelated to capacity.

This message was sent by Atlassian JIRA

View raw message