src/main/java/org/deduplogger/logger/LogCache.java
/*
   * Calculate the size of string for estimating the memory consumption of the cache
   * 64 bit reference : sizeof(string) = 36 + string.length() * 2
   */
Calculate the size of string for estimating the memory consumption of the cache
64 bit reference : sizeof(string) = 36 + string.length() * 2
Calculate the size of string for estimating the memory consumption of the cache 64 bit reference : sizeof ( string ) = 36 + string . length () * 2
private long calculateStringSize(String msg) {
    if (msg == null) {
      return 0;
    }
    return msg.length() * 2 + STRING_HEADER_SIZE;
  }
private long calculateStringSize ( String msg ) { if ( msg == null ) { return 0 ; } return msg . length ( ) * 2 + STRING_HEADER_SIZE ; }
Calculate the size of string for estimating the memory consumption of the cache
 64 bit reference : sizeof(string) = 36 + string.length() * 2
Calculate the size of string for estimating the memory consumption of the cache 64 bit reference : sizeof ( string ) = 36 + string . length () * 2