I want to shorten the time to complete the work

If it’s moving back and forth for each pass, then you could assign individual toolpaths to each hole.

Alternately, there are 3rd party utilities which will optimize a G-Code file — link to a wiki which lists such at: