[
https://issues.apache.org/jira/browse/MNG-6571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749910#comment-16749910
]
Mickael Istria commented on MNG-6571:
-------------------------------------
[~hboutemy]'s comment about trying to cache VersionRange to avoid multiple
instantiations seems promising. It reminds me that story with Date told by
Martin Fowler to introduce the "create factory" in the "Refactoring" book IIRC
;)
Another smell I see is usage bigInteger: there are 16M instances that retain
~1GB. Is this BigInteger really necessary? Isn't long or even int enough in the
use-case case (IntegerItem in ComparableVersion)? If we go for a long instead,
this 1GB would turn to 16M * 8B = 104MB, saving 900MB.
> Maven memory consumption issue
> ------------------------------
>
> Key: MNG-6571
> URL: https://issues.apache.org/jira/browse/MNG-6571
> Project: Maven
> Issue Type: Wish
> Affects Versions: 3.6.0
> Reporter: Hervé Boutemy
> Priority: Major
> Attachments: Maven-Reactor-Dump.png
>
>
> as reported on Users list:
> https://lists.apache.org/thread.html/7d75142448b3c234742bdfd3c743e2f62065fe8e0a313905cbbb2523@%3Cusers.maven.apache.org%3E
> then with details on Dev list:
> https://lists.apache.org/thread.html/34b64295238594e554f1f2f119848bce3b60d4e1e22e09f26aa64166@%3Cdev.maven.apache.org%3E
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)