If the slowness is due to misbehaving software, this article has some first steps to try. Creating a new user account and seeing how it performs is a good one overall. https://support.apple.com/en-us/HT201516