双葉幼稚園 A Layman's Repository

Speed up Octopress generation

image

Generating hundreds posts with Octopress is very slow... On my computer, it takes ~40 seconds to do a full site generation, unacceptable for tweaking post or live preview. But usually we are just modifying one post, a full site generation sounds ridiculous, these two commands may help:

After creating a new post (like this), we isolate it from all others by using rake isolate["speed-up"], generate only the new post takes about 2 seconds, 20x boost. When all done, run rake integrate to get stashed posts back.

Reference: Tips for Speeding Up Octopress Site Generation