Cut corners
To do so something in the easiest, fastest, or cheapest way, but not necessarily in the best way, dates from the late 19th century. It derives from the practice of cutting the corner, which means taking the diagonal route across a corner, which, of course, is the quickest route.