Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Originally, this option was added to improve SPECjBB performance. The gains are due to reduced memory bandwidth requirements between the processor and DRAM. Loading and storing bytes in the byte[] consumes 1/2 the bandwidth versus chars in the char[].</p> <p>However, this comes at a price. The code has to determine if the internal array is a byte[] or char[]. This takes CPU time and if the workload is not memory <strong>bandwidth</strong> constrained, it can cause a performance regression. There is also a code maintenance price due to the added complexity.</p> <p>Because there weren't enough production-like workloads that showed significant gains (except perhaps SPECjBB), the option was removed.</p> <p>There is another angle to this. The option reduces heap usage. For applicable Strings, it reduces the memory usage of those Strings by 1/2. This angle wasn't considered at the time of option removal. For workloads that are memory <strong>capacity</strong> constrained (i.e. have to run with limited heap space and GC takes a lot of time), this option can prove useful.</p> <p>If enough memory <strong>capacity</strong> constrained production-like workloads can be found to justify the option's inclusion, then <em>maybe</em> the option will be brought back.</p> <p><strong>Edit 3/20/2013:</strong> An average server heap dump uses 25% of the space on Strings. Most Strings are compressible. If the option is reintroduced, it could save half of this space (e.g. ~12%)!</p> <p><strong>Edit 3/10/2016:</strong> A feature similar to compressed strings is coming back in JDK 9 <a href="http://openjdk.java.net/jeps/254" rel="noreferrer">JEP 254</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload