Jeroen (Speedzor)
Jeroen (Speedzor)
CC#
Created by Jeroen (Speedzor) on 10/29/2023 in #help
❔ Benchmarking object size difference
Circling back here: I've written up my findings at https://vannevel.net/posts/exploring-object-layouts. The missing link was the Object Header and the Method Table -- both are 8 bytes each and make up the diff with the expected 80 bytes that we were seeing.
84 replies
CC#
Created by Jeroen (Speedzor) on 10/29/2023 in #help
❔ Benchmarking object size difference
Thanks both, it's been really interesting! Will play around with windbg a bit more; I appreciate your input
84 replies
CC#
Created by Jeroen (Speedzor) on 10/29/2023 in #help
❔ Benchmarking object size difference
I was with you until you changed the padding to 10 and 12 respectively. Why isn't it 2 and 4 to reach the 48-byte mark?
84 replies
CC#
Created by Jeroen (Speedzor) on 10/29/2023 in #help
❔ Benchmarking object size difference
int32 is 4 bytes, I think default packing is 8 bytes. It looks like the two booleans (offsets 44 and 45) are placed right after the int32 (offset 40). Is the conclusion that int32 + bool + bool + 2byte padding is the same as int32 + 4 byte padding?
84 replies
CC#
Created by Jeroen (Speedzor) on 10/29/2023 in #help
❔ Benchmarking object size difference
Do you know of any way to confirm that? I was hoping there would be some sort of tool that allows me to tell what an object's structure looks like but I haven't come across something like that yet
84 replies