4 ms·
I often use a variation of this line of thinking for determining if something is worth optimizing. Sometimes it can be hard to tell from profiling output or fl
by justinsaccount 6y ago
I often use a variation of this line of thinking for determining if something is worth optimizing.
Sometimes it can be hard to tell from profiling output or flame graphs just how much time is spent somewhere. Before trying to make something faster the first thing I do is turn it into a no-op.
If avoiding doing something entirely makes the program run 2% faster, then making that run in half the time is only going to give an overall 1% improvement.
I don't know if there's a name for this variation. It's just the same thing applied to different components and not specifically related to parallelism.
- SatvikBeri 6y agoTechnically that's still just Amdahl's law, the statement has nothing to do with parallelism. I'm not sure when it became so heavily associated with parallelism.