welcome to amdahl's law
https://en.wikipedia.org/wiki/Amdahl%27s_law
Usually used in the parallel computing context, but works here too.
A small speedup on the longest (by time) part of the program is usually better than infinite speedup on a short part of the program.