public static long estimateArraySize(int length, long entrySize) {
    return CLASS_HEADER_BYTES + entrySize * length;
  }
Estimates the size of an HPPC {@link Accountable} instance.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/MemoryEstimator.java