Static vs Dynamic memory allocation

I was just curious if there is a performance difference (e.g access time, speed, ...) between allocating static memory vs dynamic memory?
For example, if am reading data from a file, and storing them inside a huge buffer, what would be the differences between storing these data inside a static buffer vs a dynamic one?

If you declare a huge buffer as a static array you can cause a stack overflow.
You should never store big amounts of data in the stack.
Topic archived. No new replies allowed.