Hacker News new | ask | show | jobs
by anitil 2053 days ago
Looking at this from a performance point of view, I think this could be useful with the addition of some tracing capability.

What I mean is, reducing the size of a barely-used struct isn't worth the effort, but reduction of a key struct in a critical region, or a large bloated array of structs could be very useful.

So some measure of: possible reduction (which structslop provides), 'hotness', and total memory usage, would make this a killer feature.

From my bare-metal days we used to manually rearrange structs or use them packed, but it'd be great to have a tool that could attach to your codebase and do that analysis for you.