RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap

Martin Buchholz martinrb at google.com
Wed Apr 10 23:49:06 UTC 2013


Whether or not we use null or an empty array as a sentinel value, we will
need to make a special check for empty on most operations, and that will
not be predictable if empty collection operations are common.

The empty collection optimization is a strange sort of compression
algorithm.



More information about the core-libs-dev mailing list