Does numba translate heap allocations to stack allocations? Or perhaps more generally, does it perform escape analysis?
There’s a conversation about it here