You already have a lot of hints concerning performance and the construction of specific tasks. I would like to point you to a collection of entries that deal with performance (yes one day they might be put together in a single post without redundancies).