Why does Hexo generation take so long? -


as file count increases, hexo spends more , more time generating static html files using 'hexo g'. why hexo reconstruct every single '.md' file, instead of limiting files modified?

my hexo version 3.0.1.

it depends on several things, major bottlenecks are:

theme not using cache

the author introduced fragment cache last year cache static parts (header, footer, sidebar).
theme author use speed page generation.
try changing other themes , see if there different.

highlight.js language detection

highlight.js try auto-detect language in code block if no language specified since 3.0, takes considerable time.
consider using plain , auto_detect option (#1124) , see if there different.


it has been mentioned, not committed, use incremental approach in generating static html.

my workflow of using hexo is:
- hexo serve preview update
modify iteratively in step
using hexo-livereload saves actively reloading page
- hexo generate/hexo deploy publish site


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -