Computer is generally slow, Applications take 10 seconds - 3 minutes to launch, websites take 5-15 seconds to load, etc
It was curl together with mds and mdworker that caused this. I have tried it restart the computer 10 times, 5 times with the script on and it lagged like this all the time, but when I didn't run curl it was as fast as ever. I have researched but I can't at all figure out why curl would do this.