Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will optimizing code become unnecessary?

If Moore's Law holds true, and CPUs/GPUs become increasingly fast, will software (and, by association, you software developers) still push the boundaries to the extent that you still need to optimize your code? Or will a naive factorial solution be good enough for your code (etc)?

like image 413
jkeys Avatar asked Jun 12 '09 23:06

jkeys


People also ask

What are the 10 reasons for code optimization?

10 Reasons Why You Need Code Optimization. 1 1. Cleaner Code Base. As a project matures, and more and more developers start to work on it, duplications and overlaps usually sooner or later ... 2 2. Higher Consistency. 3 3. Faster Sites. 4 4. Better Code Readability. 5 5. More Efficient Refactoring. More items

What's wrong with premature optimization?

I've found that the problem with premature optimization mostly happens when re-writing existing code to be faster. I can see how it could be a problem to write some convoluted optimization in the first place, but mostly I see premature optimization rearing its ugly head in fixing what ain't (known to be) broke.

Why do we need to review the Java coding standards?

It is necessary that the code which we are writing is not only clean, and without defects but also optimized i.e. the time taken by the code to execute should be within intended limits. In order to achieve this, we need to refer to the Java coding standards and review our code to make sure it is as per the standards.

Is it worth it to Optimize my algorithms early?

But if both algorithms are similarly complex, or if the expected workload is so large that you already know you'll need the faster one, then optimizing early is a sound engineering decision that will reduce your total workload in the long run.


1 Answers

2x the processing power doesn't do much to ameliorate the awfulness of your lousy n^2 search.

like image 114
mqp Avatar answered Sep 17 '22 14:09

mqp