root_search() is not time critical code, so for speed it doesn't matter at all.Ralph Stoesser wrote:Again a little something from search.cpp.
In root_search() you compute
depth = (Iteration - 2) * OnePly + InitialDepth;
nested within the fail low and the move loop.
Depth computation could be done in Step 1. Initialize node.
No reason to compute it within any loops.
Now the question is that does your change increase the readability of the code? What do you think yourself?