Xcode slows down my computer
Hi all, I have run into a problem where xCode slows down my iMac while it isn't even running.
Earlier this year I purchased a 21" 4K 3.0GHz 8Gb iMac for the sole purpose of running Xcode. The first thing that I did after unboxing was to install Xcode. The computer became so slow that it was unusable. Some examples.es to
~5 minutes to open Notes
~15 min to transfer 15MB between SD Card and HDD
Regular beach balls for more than 10 min.
Xcode was about the only thing installed on the machine, there was plenty of disk space and no giveaways in Activity Monitor.
The iMac was so unusable that I had no option but to replace it ($1800 down the drain) I replaced it with a 27" model with a fusion drive. I set up this as a new machine however without my permission, a stack of files downloaded from iCloud. Again the first thing that I did was to install Xcode.
Again I this computer was extremely slow, albeit nowhere near as slow as the first iMac. Examples:
~5 min to transfer 15MB
720P video won't play without "glitching"
Regular beach balls for around 2 minutes
again no giveaways in activity monitor.
I tried a system reset with a fresh install of OSX, and did some testing before installing Xcode, things seemed alright without Xcode. I thought that I would install Xcode but not open it and continue my incremental fault finding/testing. With Xcode installed but having never even been opened, the iMac was back to its old ways. by this point, my standardised test is to play a 720P video and see if it glitches or not. I uninstall Xcode again and all seems fine.
I am stuck now because I purchased both computers solely to run Xcode but it seems the very presence of the program causes to the computer to be very slow and pretty much unusable.
I understand that many others have problems with Xcode itself being very slow but has anyone had issues with it slowing down the machine even when the app isn't running?
Any pointers on solving the issue? I couldn't really afford the initial $1800 machine let alone an additional $2700 machine. I don't want to spend money upgrading the machine unless I am certain that it will solve the problem.
One idea that I had was to run Xcode from an external SSD. Can I even do this? do you think it will help?
iMac (Retina 5K, 27-inch, 2017), macOS High Sierra (10.13.6)