One the trade-offs to all-in-ones is not being able to upgrade most of the parts. You could try [upgrading to an SSD](https://apple.stackexchange.com/questions/156536/upgrade-imac-late-2009-with-ssd) but you're not going to see huge performance gains. The primary bottleneck at that point will continue to be the CPU (and possibly graphics).