Re: static vs dynamic array
The only speed difference should in the allocation/deallocation; access times should be equivalent. For a static array allocation/deallocation is nearly instant, for a dynamic array (I hope you use std::vector instead) a call to new[]/delete[] is required, the performance of which is not always the same, but always slower than for a static array. The unpredictability of performance for dynamic arrays can also be a reason to prefer static arrays in real-time systems.
Re: static vs dynamic array
Okay Thanks. It makes sense
Re: static vs dynamic array
not quite.
ALl dynamic arrays work off a pointer pointing to some allocated bit of memory.
This is an extra level of indirection that isn't there when using a fixed array. This will also have a small effect on performance.