6 ms·
Thats also a reason I will include as a comment the unoptimized code with comments whenever I do optimized crazycode. That way, I can understand what is actual
by crankylinuxuser 7y ago
Thats also a reason I will include as a comment the unoptimized code with comments whenever I do optimized crazycode.
That way, I can understand what is actually being done. And I can then re-analyze why I did the shortcuts to get to optimization.
But 99% of the time, we dont need to optimize. CPU/RAM is cheap. But those 1% of the times when you're going from N^2 to N^logN ... Welll.....
- CuriouslyC 7y agoDid you mean N*logN? I don't think going to N^logN is what you want ;)
- crankylinuxuser 7y agoSigh, yep! Thats what I get for trying to type it on a phone browser!