The sluggishness is not related to the *compilation* window, so we can close this bug (as fixed by emacs 26.3) and I'll open a new bug report. Thank-you for your help! (And thank-you to Kevin Kelley for setting up the PPA for emacs26.3)