PL code execution time - strange behavior
Posted: May 06 2017
I have stumbled upon an interesting phenomenon:
Consider the following piece of code:
-----------------------------------------------------------
------------------------------------------------------------
Now, even though this line of the code is not supposed to be executed at run-time, the actual time of execution is significantly higher (Optimization time jumps nearly 2x !) in presence of such instruction vs. just simply "commenting out" the line calling a function.
Why would this be??
MultiCharts64 Version 9.1 Release (Build 12587)
Consider the following piece of code:
-----------------------------------------------------------
Code: Select all
Input: P(false);
if P then Value1=Function () ; // where Function is calculationally-intensive
Now, even though this line of the code is not supposed to be executed at run-time, the actual time of execution is significantly higher (Optimization time jumps nearly 2x !) in presence of such instruction vs. just simply "commenting out" the line calling a function.
Why would this be??
MultiCharts64 Version 9.1 Release (Build 12587)