Hi,
I almost sold my Mac Mini (2014) because it was slow.

Now I've exchanged the HD hard drive with a SSD hard drive and compiling is fun again.
Cost and time:
1) SSD-hard (250GB) = 49.99 €
2) Drive cloning = about 2 hours
3) Replace the hard disk = 1 hours