metrics icon indicating copy to clipboard operation
metrics copied to clipboard

Reduce build time to speed up development

Open OrkoHunter opened this issue 6 years ago • 0 comments

This project generates a lot of static web pages. Currently, the count is 12969 markdown files which are converted into HTML pages by Jekyll. It takes 246.02 seconds as of now. Every month, around 800 new pages are created. I believe the build time is reduced to some extent when it is developed on better machines.

My concern is, when someone is working on this project, they constantly regenerate the pages to find out the effects of the changes they are making. It used to take around 30 seconds last summer even with incremental build enabled. This is a huge drawback of Jekyll.

I have been experimenting with this very popular static page generator called Hugo, written in Go. It is very easy to install and use. And the reason why Jekyll should be replaced with Hugo for this project is that it is incredibly fast. Hugo claims that it takes <1ms per page to build. That would reduce the build time from ~250s to ~13 which is awesome!

The programming language is not a concern to us since we do not use anything ruby specific for Jekyll, nor we'll use anything Golang specific for Hugo. They have yaml based configs which work pretty neatly.

OrkoHunter avatar Feb 16 '19 08:02 OrkoHunter