It is useful in the case that you want a predictable and expected delay immediately, rather than unpredictable delays for an unknown length of time to come.
But if you run the memory hogging program, then go to lunch, if the swapoff/swapon is triggered before you get back, you will be avoiding the delays entirely.