This might be a silly question, but I couldn't find the answer anywhere. I'm wondering roughly how fast arduino actually goes through and processes each line of code, and if the size of the program can make any sort of difference to how fast its executed?
The main reason I wonder is I'm planning to make a high speed photo flash trigger, where you take input from a sensor (sound, knock, break beam, etc), and instantly activate a flash, or sometimes with a specific timed delay.
Now if speed of executing code is an issue, I could just write the absolute bare minimum amount of lines.
However I'm thinking it would be nice to make it more elaborate, with an lcd screen to display various setting otions and allow you to change them live, such as adjusting the delay in a choice of either milliseconds or microseconds, adjusting the noise thresholds, and other various settings and features.
But would adding all that extra code, and including the lcd library make any sort of delay of a substansial enough value that it could affect the actual response time, or accuracy when its time to fire the flash? I mean, I will be capturing pretty fast things, but its not like I'm going to go trying to capture rifle bullets or anything that fast. If its only a difference of a handful of nanoseconds it wouldn't matter, but if it could be slowing the whole process down by a millisecond that could make a difference.