how much slower: heap vs stack memory allocation?# Programming - 葵花宝典
w*y
1 楼
We know that using heap-allocated memory is slower than stack memory. Can
anyone tell me how much slower is the heap memory allocation? A numerical
analysis on a popular implementation would be terrific, e.g., linux. Another
stupid question: after memory allocation, the access to heap memory should
be as fast as to stack memory, right?
Thanks.
anyone tell me how much slower is the heap memory allocation? A numerical
analysis on a popular implementation would be terrific, e.g., linux. Another
stupid question: after memory allocation, the access to heap memory should
be as fast as to stack memory, right?
Thanks.