Tell me about escape analysis and optimizing heap allocations

I did an exploration here where I tried to see if I could get a finalizer that frees a pointer to inline.

I made some progress. If I do nothing with the smart pointer, it gets deallocated.

2 Likes