Using Compact Strings
Azul Platform Prime supports JEP 254, the compact strings optimization.
The compact strings feature of the Azul Platform Prime lowers memory footprint, improves performance of string-intensive applications, and reduces time spent on garbage collection.
To enable or disable the feature, use the following option:
-XX:[+/-]CompactStrings
Note
|
Compact strings change internal representation of all strings from char[] to byte[] , and changes the String class layout. If your application accesses java.lang.String fields via reflection or is unsafe, you may observe incorrect application behavior.
|