A few questions along with my own summary about optimising code. Please correct me if I am wrong.
Optimising code is about having your code executed in the fastest possible way.
To do that I would have to have the least possible code used to achieve something?
Though I see a problem, there are many ways of achieving one thing (could be anything), what I am trying to say is that while I may have the least possible code to have my program do what it has to but it may take more CPU cycles to do it.
So, what is the secret to optimising code?
Optimising code is about having your code executed in the fastest possible way.
To do that I would have to have the least possible code used to achieve something?
Though I see a problem, there are many ways of achieving one thing (could be anything), what I am trying to say is that while I may have the least possible code to have my program do what it has to but it may take more CPU cycles to do it.
So, what is the secret to optimising code?