java-sizeof
java-sizeof copied to clipboard
Memory consumption estimator for Scala/Java
I'm just logging this for reference. Apache Drill uses this lib but it is a little out of date. * some fixes to the Spark code are missing from here...
next code will over estimate size of array, for example, object A contains array B, C is one element of Bă If C contains A, then, estimate C will get...
Looking at the spark repo, it looks like at least one relevant fix has been made since this code was extracted. It might be a good idea to merge it....