3 ms·
The only nested loop implementation I've ever changed for performance was due to the fact that there was a freakin' database call in the inner loop. All I did w
by csours 7y ago
The only nested loop implementation I've ever changed for performance was due to the fact that there was a freakin' database call in the inner loop. All I did was refactor the data structure so that the db call was done outside the outer loop. Instant 20x improvement in performance.