Speed up Octopress generation15 Apr 2013
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:
- rake isolate[filename] # Move all other posts than the one currently being worked on to a temporary stash location (stash) so regenerating the site happens much more quickly.
- rake integrate # Move all stashed posts back into the posts directory, ready for site generation.
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.