"anything stored in that pointer to memory you got back from malloc() is stored in an area of ram called "the heap", which is moderately slower to access than it is to access the stack."
Is this true, or a myth? Ignoring the allocation cost and access patterns making cache misses more likely, surely memory is just memory