Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
hexo 3.0 file loading speed #1124
Hi, my hexo was migrated from 2.8 to 3.0 recently, but the speed of file loading was extremely slow.
Can someone help me?
After profiling I found it's such kind of code that become the bottleneck of loading speed:
It works fine under Hexo 2.x but not under 3.0. So maybe the Highlight.js is to be blamed? You can test the above code under your environment and see whether you come across the same problem.
FYI, I wrote a script to help me detect all the plain codes without
Remember to backup your posts before executing this script, since it will do the job in-place.
Script address: https://gist.github.com/wzpan/7db9b0888f06a8d6ff8c
@tommy351 I've disabled auto detect for highlight, but it can not improve file load time, which is 4.57s(the load time is 4.5s with auto detect).
I think there will be some other reasons for this.
FYI. Following is the output of "hexo version"
This was referenced
Jul 16, 2015
referenced this issue
Jul 16, 2015
The _config.yml file in the theme's(mine is Next) directory or the main site directory ?
FATAL duplicated mapping key at line 111, column 1: