3 ms·
With noting that the GC in Nim (not "stop the world" BTW) is attached to the type. Unless you declare a type as `ref`, you're using stack allocation. Even if y
by arc619 5y ago
With noting that the GC in Nim (not "stop the world" BTW) is attached to the type. Unless you declare a type as `ref`, you're using stack allocation.
Even if you do use the GC, the compiler elides GC work if the type doesn't escape the scope.