You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Philippe Mouawad (JIRA)" <ji...@apache.org> on 2015/11/27 22:24:10 UTC

[jira] [Commented] (COLLECTIONS-557) LRUMap memory usage vs size

    [ https://issues.apache.org/jira/browse/COLLECTIONS-557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030244#comment-15030244 ] 

Philippe Mouawad commented on COLLECTIONS-557:
----------------------------------------------

Hello [~tn],
I see you set fix version to 3.2.2 [ 12316247 ]  but I don't see it mentioned in release notes of 3.2.2 :
http://commons.apache.org/proper/commons-collections/release_3_2_2.html

Is it really in 3.2.2 or 3.2.X or only in 4.X ?
Thanks

> LRUMap memory usage vs size
> ---------------------------
>
>                 Key: COLLECTIONS-557
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-557
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Map
>    Affects Versions: 3.2.1
>            Reporter: Philippe Mouawad
>              Labels: MEMORY
>             Fix For: 4.1
>
>
> Hello,
> 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
(v6.3.4#6332)