Speed up generating speed

Generating speed is slow when we have mass files. It may take 10 minutes to build a blog with 300+ posts.