RFC: JDK-8031043: ClassValue's backing map should have a smaller initial size

Christian Thalinger christian.thalinger at oracle.com
Wed Jan 8 12:45:41 PST 2014


On Jan 8, 2014, at 6:43 AM, Jochen Theodorou <blackdrag at gmx.org> wrote:

> Am 07.01.2014 23:54, schrieb Christian Thalinger:
>> Can I get some comments on this bug from people who are using ClassValue?
>> 
>> [#JDK-8031043] ClassValue's backing map should have a smaller initial
>> size - Java Bug System <https://bugs.openjdk.java.net/browse/JDK-8031043>
>> 
>> Is my assumption correct that most language runtimes only attach a small
>> number of values (maybe only one) or that it wouldn’t matter if the map
>> would grow as needed?
> 
> I expect about 3-5 values for Groovy 3 as the standard case. 32 might be 
> really too much, 8 would be probably still enough for most use cases

If we’d go with an initial value of 1 would it be a performance problem for you if it grows automatically?

> 
> bye Jochen
> 
> -- 
> Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
> blog: http://blackdragsview.blogspot.com/
> german groovy discussion newsgroup: de.comp.lang.misc
> For Groovy programming sources visit http://groovy-lang.org
> 
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev



More information about the mlvm-dev mailing list