by fits and starts

[by fits and starts] or [jerks] {adv. phr.} With many stops and starts, a little now and a little more later; not all the time; irregularly.

He had worked on the invention by fits and starts for several years.

You will never get anywhere if you study just by fits and starts.

Compare: FROM TIME TO TIME, OFF AND ON.