I want to understand what is the impact of changing following #defines
#define DEFAULT_SEARCH_STACK_DEPTH 16
#define MINIMUM_SEARCH_STACK_DEPTH 8
I can see that this value is used to allocate search_stack.
I modified these values to
#define DEFAULT_SEARCH_STACK_DEPTH 4
#define MINIMUM_SEARCH_STACK_DEPTH 2
This helped in reducing memory footprint however I am not sure about the wide range impact.