Willem wrote:
Ioannis wrote:
) Yes, what I am saying about "register" and small scopes is a general
) good practice.
But are you saying that using "register" in small scopes
is the only 'proper use' ? And that using it in larger
scopes is therefore 'improper use' ?
I am saying that using "register" in small scopes is a general good
practice when using this keyword, the same way as using "inline" with
small functions is a general good practice.
Naturally there are exceptions to these rules.
An exception example for "register" is when we want a specific portion
of code to run as fast as possible without caring about run-time
efficiency of the rest of the code because of this.
An exception example for "inline" is when we want a large function with
many calls to be called as fast as possible, without caring about space
efficiency.