3 ms·
I think that’s true for small structs made of floats but not true for something like an immutable lisp-style linked list.
by dan-robertson 6y ago
I think that’s true for small structs made of floats but not true for something like an immutable lisp-style linked list.
- DNF2 6y agoNot just floats, and I'm not sure they have to be that small. All sorts of structs containing bitstypes/value types can be stack allocated. In fact, even some structs with pointers to heap-allocated memory can be stack-allocated (such as array views.) I don't know about linked lists, though.