Why does updating Xcode make my computer so slow?

Run Xcode post updating to make sure any post installation scripts get a chance to run.

After that, restart your Mac and see if the problem goes away.