2 ms·
Yes, that's exactly the point I was getting at. We're dealing with temporary values for which you'd use an arena/pool allocator in C/C++. The nursery is essenti
by rbehrends 9y ago
Yes, that's exactly the point I was getting at. We're dealing with temporary values for which you'd use an arena/pool allocator in C/C++. The nursery is essentially an arena allocator that works transparently for temporary values.
My point is also not that it's always better, but that it's not safe to make blanket assumptions about GC overhead.
And if you're dealing with long-lived data of varying sizes, then the manual allocation story isn't that great, either.