News for hackers. Stuff that matters.
Re:Stop Using Linked Lists by bad_user on Wednesday May 22, 2013 @03:52PM (#5753294)
Hehe, it happens.

Speaking of memory allocation, the stack is named that way because it's an actual stack and most function calls receive parameters through it and return their results through it. This is why it's cheaper to store things on the stack, because if you want to use a value from memory, it's going to end up on that stack anyway (e.g. boxing / unboxing), not to mention that items get allocated and deallocated in LIFO order, so you've got no issues with searching for available space or fragmentation.

There are no comments on this comment yet.