Check out Paul Vick's ten rules of performance. It's very interesting read, even though it won't tell you how exactly to speed up a particular chunk of code.
Share this story:
"I don't see much sense in that." said Rabbit.
"No," said Pooh humbly, "there isn't. But there was going to be when I began it. It's just that something happened to it along the way."