My guess is that sometime in the last 2 years you updated your Mac OS to Sierra 10.12.6. At that point printing through java programs such as MD takes a long time. The latest builds of MD reduced that somewhat but it is still many minutes to actually print.
The only solution is to update the latest version of MD (2017.7) and to Mac OS High Sierra. That seems to resolve it.