Why/When you would not want to have Java 8 UseStringDeduplication enabled in JVM?

后端 未结 3 1242
说谎
说谎 2020-12-25 12:32

Java 8 introduced String Deduplication that can be enabled by launching JVM with -XX:+UseStringDeduplication option allowing to save some memory by referencing

3条回答
  •  一个人的身影
    2020-12-25 13:35

    At javaperf consulting we have developed an automate which automatically performs corrections in your source code. In fact there is no longer any duplication of strings. The correction rule applies the recommendations of SonarQube and calculates the variable names so that they remain readable in the code. The automate also takes into account the other variables already used to avoid name collisions.

提交回复
热议问题