3 ms·
It would be pretty cool to try to instantiate each one, and then do a sizeof(instance) on it to see how large the memory footprint is.
by euroclydon 16y ago
It would be pretty cool to try to instantiate each one, and then do a sizeof(instance) on it to see how large the memory footprint is.
- daeken 16y agoIf you only want the size of the object itself -- not the things it references -- then you don't actually need to instantiate them to know this. You can reflect on the fields of the type and calculate its memory footprint that way.