For example, When looking at the code under a microscope, does this first code block use more computational time than the second code block?
code block 1:
method1() {
do something;
call method2;
}
method2() {
do something simple like assign a variable value;
}
code block 2:
method1(){
do something;
do something simple like assign a variable value;
}
Pretty simple, but I'm looking to see if anyone here knows what the value is in considering this (e.g. optimizing a program for minimal computational time).
As an example, I learned that gates in a circuit have a finite "Delta delay" in which it is possible to add up to see the maximum delay that the circuit will have when considering the clock speed in the design. Does Java have something similar to the Delta delay?