On the driving-range you frequently see guys beating ball after ball. This is not the way to efficiently work on your golf skills. Each ball strike requires a purpose to maximize your learning. Feedback is key for your brain to learn.
In addition to this, your body sets also some limitations. An athletic golf-swing is an extremely powerful movement involving big muscles (legs, torso). The explosive movement involves the fast twitch muscle fibers. This glycolytic system requires some rest between the strikes to recover. If you do not recover enough between the swings, your swing speed will be impacted and you are loosing quality in your practice session. Finally, your movement might be impacted as well which could harm your golf swing. This is definitely in contrary to the intention of a practice session!
Next time, when you discover yourself hitting balls like a machine-gun, take a breath and slow down. It is good for your swing.