Which is best optimized for speed, using 4 separate variables or a 4 dimension Array?
I want to ensure I've used the most optimized code. I'm using gcc on linux. I have 4 values to store. If I use an array, I can for() loop as a convenience and shorter code, but is there added overhead compared to just using separate variables and having a few more lines of repetitive code? Will using the for() loop use up more ticks? Sorry if I'm splitting hairs as I am not sure.
So I am wondering if using:
uint8_t varA1;uint8_t varA2;uint8_t varA3;uint8_t varA4;
is faster than using:
uint8_t varA[4]
