Picture a small system. Something is produced and then it is verified. If the producing is more demanding than the verification, the production step is the constraint. The production time limits the throughput. Move the verification step in front of the production step. Making sure only to spend effort on things that will add value. Make each iteration, batch, smaller. Then the waste in the system will go down, and the throughput go up.
This is Test Driven Development (TDD) explained with Theory of Constraints.