Since R2015b functions that introspect are just slower, they do not generally disrupt any other optimizations. I would probably order the list in that doc note differently in terms of importance:
- Avoid clearing more code than necessary. Do not use clear all programmatically. For more information, see clear.
- Avoid programmatic use of cd, addpath, and rmpath, when possible. Changing the MATLAB path during run time results in code recompilation.
- Avoid functions such as eval, evalc, evalin, and feval(fname). Use the function handle input to feval whenever possible. Indirectly evaluating a MATLAB expression from text is computationally expensive.
- Avoid functions that query the state of MATLAB such as inputname, which, whos, exist(var), and dbstack. Run-time introspection is computationally expensive.
One of the reasons eval functions are slow is that they must due the same introspection done in the last group of functions.
The more times a function is run the more MATLAB tries to optimize it. Clearing the function (possibly due to CD or path manipulation) starts the optimization process back at the beginning, that is the only disrupting influence I can think of.