Are you on macOS? Is it the most recent version of macOS?
You can optimize your PC with CCleaner for example... Or download Avast or Malwarebytes. Virus and garbage on your PC slows down your PC a lot. Also updating to the most recent version of macOS it's not a bad idea.
NO DONT DOWNLOAD CCLEANER!! People in the comments are saying that ccleaner is malware/virus. While it might look very real, it is very easy to fall for! I hope you did not download ccleaner and listen to this scammer!