October 11
I think I'm using way to much memory for pointers, so I'd like to see how much of my memory usage is taken up by pointers. I've calculated the answer, but I wonder if the compiler/runtime could do it for me, to get a faster and more exact number?
October 12
On Sunday, 11 October 2020 at 20:58:22 UTC, drathier wrote:
> I think I'm using way to much memory for pointers, so I'd like to see how much of my memory usage is taken up by pointers. I've calculated the answer, but I wonder if the compiler/runtime could do it for me, to get a faster and more exact number?

More specifically, can I do this for a single value? E.g. how much memory is used by pointer types in this specific variable?