The plodding US economy had one significant bright spot in the first half of the year—a bustling mergers and acquisitions market that stands a good chance of continuing through the second half.

Though the activity was a bit front-loaded in the first quarter, domestic M&A totaled $584.4 billion through June, the best since the pre-financial crisis days in the first half of 2008 and a 41 percent increase over 2010, according to Dealogic.