Suppose you are given the task of improving the performance of a program consisting of three parts. Part $A$ requires 20% of the overall run time, part $B$ requires 30%, and part $C$ requires 50%.
You determine that for \$1000 you could either speed up part $B$ by a factor of 3.0 or part $C$ by a factor of 1.5. Which choice would maximize performance?
I think if you speed up part $B$ by a factor of 3.0, then you only spend 10% of your time on that, saving 20% time. But if you speed up part $C$ by a factor of 1.5, then you spend 25% time and save 25% time.
So is speed up part $C$ the right answer since you save 25% vs 20%?
Thanks