as I understand if program use in the runtime some variables or const “variables”, it always need to jump to some place in memory. And as I know it always take some time to find and read that memory block.
So I wonder if isn’t it faster when we use
As I understand
#define makes alias to rvalue. So for example if I define something like that:
#define SOME_VALUE 10.0f
Then for program it doesn’t matter if I use
10.0f. For program it’s exactly the same. So it doesn’t need to jump to any memory. So my theory is that it should be faster.
Am I right?
If yes, then why programmer dissuade to use