Improving ForkJoin usage for better performance

Improving ForkJoin usage for better performance

Hi, I’m a PhD student doing research on ForkJoin usage, and I found that your code can be improved for better performance and energy efficiency.

Using this modification, there is no need to create a new data structure instance during the ForkJoin recursive operation. It will save you some memory, execution time, and energy consumption.