Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Major performance issues #2164
Trying to investigate why Hexo is so slow, I found an interesting thing. Hexo always renders ALL files, even if no files are changed, and then rendering result for unchanged files is discarded.
Moreover, when rendering each file, it loads ejs templates and partials from the theme again and binds all the helpers, i.e. no template caching exists.
For example, for my not very bid site these two problems together lead to various ejs templates being processed 4500+ times and helpers being bound (https://github.com/hexojs/hexo/blob/master/lib/theme/view.js#L78) 217000+ times (!) - always, even if no files are changed.
Any comments on this and plans to fix?
referenced this issue
May 26, 2017
Thanks for your effort in pointing out the bottlenecks.
That said, Hexo do have fragment_cache. But some themes are not using it properly.