One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!
Task.find(:all, :include => :projects)
Task.find(:all, :include => [:projects, :comments])