RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap (original) (raw)
Martin Buchholz martinrb at google.com
Wed Apr 10 23:49:06 UTC 2013
- Previous message: RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap
- Next message: RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap
- Next message: RFR JDK-8011200 (was 7143928) : (coll) Optimize for Empty ArrayList and HashMap
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]