2 ms·
I would take any triply-nested for loops, and reduce each loop to its own method. Inside that method would be nice, easy-to-understand stream logic rather than
by mabbo 11y ago
I would take any triply-nested for loops, and reduce each loop to its own method. Inside that method would be nice, easy-to-understand stream logic rather than for-loops.
The Java compiler will unroll the methods anyways, so you get easy readability without any loss of performance.