javabotGetting the size of objects in Java is usually not worth the effort. With that said, google "sizeof for java" and you can find various attempts at calculating how large a given object graph is, but it's not likely to be 100% accurate. Also see ~jol .
dreamreal~jol
javabotJava Object Layout (JOL) is a tool for analyzing objects' memory layout in the JVM. For more info see https://github.com/openjdk/jol
cheeserit's even harder now, i think, than went that factoid was written.
cheeser~info sizeof
javabotsizeof was added by: dreamreal on 06 Apr 2022 at 09:01 and has a literal value of: <reply>Getting the size of objects in Java is usually not worth the effort. With that said, google "sizeof for java" and you can find various attempts at calculating how large a given object graph is, but it's not likely to be 100% accurate. Also see ~jol .
cheeseronly 4 years since it was updated. not so long ago then.
Parajust lol
ParaI mean lust jol.
dreamrealwell, I'd be using it on java 17, so ...
dreamrealplus I'd want to overshoot if inaccuracy was involved
jbosmansdreamreal, you'd be using java 17? ;-)
jbosmansas in, by choice :-P
dreamrealjbosmans: no.
dreamrealI would be using java 17, but not by choice.
jbosmansi can understand "that" :-D
jbosmans"a man's gotta do what he's gotta do" etc
jbosmans17 tho !
dreamrealin my case, it's "comply with legal requirements"