Alex Rivera | Logout

Shorten page generation time for local jekyll server

Asked 2013-02-01T20:11:44.443
11

When running jekyll --server, the entire site is rebuilt. On a large enough site, this takes an exceedingly long time. Even with the --auto flag, which should prevent whole-site regeneration, the time to completion is rather lengthy (10+ seconds for me, reportedly in the minutes for some). This is inconvenient when editing and previewing a single page. I'm looking to cut that time down.

Is there a means of determining why Jekyll takes as long as it does to rebuild a page?

Alternatively, are there recommendations for editing workflow which allow for a short(er) feedback loop with Jekyll?

Edit
Report

1 Answer

3

This is a recurrent subject in Jekyll's issue tracker on Github. Unfortunately, it isn't one of the objectives. For example:

Just search for the words "compile" and "time" and you'll be able to find more. It's a bit harder than it looks because there's the possibility of broken links.

Also, if you're using LSI, use the latest version, because there was a fix related to it that makes it much faster.

My only advice to you is to see if you really need all these posts (I know, I know), because it's probably the only answer you'd get from the issue tracker right now -- something that we all want to address, but no one wants to start.

P.S.: Please post your problem on the issue tracker -- with more people complaining, it's much more possible for it to get fixed.

answered 2013-02-03T12:15:07.573

Your Answer