Re: Possible HashSet memory improvement

2013-10-06 Thread Remi Forax
On 10/06/2013 08:09 PM, Philippe Marschall wrote: On 05.10.2013 21:57, Brian Goetz wrote: Is there something I missed? Is this something that has been considered? If memory efficiency were the only metric in the world, this would be a no-brainer. But, by having different classes for differ

Re: Possible HashSet memory improvement

2013-10-06 Thread Philippe Marschall
On 05.10.2013 21:57, Brian Goetz wrote: Is there something I missed? Is this something that has been considered? If memory efficiency were the only metric in the world, this would be a no-brainer. But, by having different classes for different nodes, many many paths where the VM could prov

Re: Possible HashSet memory improvement

2013-10-05 Thread Brian Goetz
> Is there something I missed? Is this something that has been considered? If memory efficiency were the only metric in the world, this would be a no-brainer. But, by having different classes for different nodes, many many paths where the VM could prove monomorphism and thereby inline through n

Possible HashSet memory improvement

2013-10-05 Thread Philippe Marschall
Hi I attended Nathan Reynolds Java Memory Hogs [CON4695] talk where he talked about about memory waste in Java collections and attempts in 7u40 and later to improve the situation. One thing he mentioned was that there is a patch floating around that makes HashSet no longer use HashMap. This wo