Slow MacBook Pro

My MacBook Pro(Late 2011) has become really slow. Takes a lot of time to boot up and I often see the beach ball. Tried Google-ing this but coud'nt find a solution. Any optimization tips ?