Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7143933

Convert Boxed Arrays to primitive arrays

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 7, 9, 10
    • hotspot
    • generic
    • generic

      Filed on behalf of Misha Dmitriev.

      A boxed primitive (i.e. Integer, Long, Boolean, etc) consumes a lot more space on the heap. Arrays of boxed primitives consume 28% of the heap space. Consider converting the arrays of boxed primitives into primitive arrays (i.e. Object[] to int[]). If a non-int object is added to the array, then automatically convert the array back to Object[].

            Unassigned Unassigned
            nreynold Nathan Reynolds
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: