Backport performance patches to mutter 3.32 from master branch