3 ms·
Imagine you are trying to optimize your program. Some questions: What percentage (LOC-wise) of your program consumes the most time? (hint: it could be really
by d0mine 18y ago
Imagine you are trying to optimize your program.
Some questions:
What percentage (LOC-wise) of your program consumes the most time? (hint: it could be really small)
What do you accomplish if the part of your program that takes 1% of total time will run instantly? (hint: not so much)
What are your goals (10% faster, 2 times faster, 100 times faster)? What cost/benefits has each goal?
Are you using the right algorithm? What is time complexity of it; could it be better?
...
Similar speculations could bring light to the question: Are we right to assume that only the biggest producers of waste need to change.