|
|
|
|
|
by lmm
2823 days ago
|
|
> On the heap, allocation might be cheap or it might be expensive, deallocation might be cheap or it might be expensive, In other words it might behave just like "the stack"; the differences between different kinds of "heaps" are as large or larger than the difference between "the stack" and "the heap". > fragmentation is a risk, the resource is 'unlimited', and the lifetime is unscoped. None of these is true in all implementations and circumstances. Understanding the details of memory management performance is important for particular kinds of programming. But learning C's version of "the stack" and "the heap" will not help you with that. |
|