-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hexo generate slow with 400 posts #1769
Comments
Did you tried |
I did, it is indeed more usable and faster, but only for pre-visualization / debugging purposes |
I see. I was trying to suggest you to use it during development, so that |
Sure, I don't run
|
For the sake of it, I've tried to |
I don't think it's normal.
The curve of time/files is strange from 22/718(about 0.03) to 240/1071(about 0.224). Maybe you can try set |
Well:
Doesn't seem to run faster. Any hint on how to help debug this? |
Using genstubs to generate 500 posts: Symlinking
(Disclaimer: I'm on SSD, but since you've tried with Please check where most of the time is spent on your run. |
|
@tl3shi I cloned your repo @iMilnb what theme are you using? Can you give landscape a try and report. |
Boom! that's it, it took only 15 seconds to render the 400 posts with |
Alas, though this is not a Hexo problem, it seems easy to write an inefficient theme. |
Sad thing is that I used the |
Ok I found that it's the
Even faster than Edit The |
Themes are supposed to make use of fragment_cache (cached render result) to improve performance. Templates Optimization| Hexo |
Perfect! here's the fix for
with
And then:
Thanks a lot @leesei ! |
Thanks for your testing and helping us to get to |
Will definitely do |
@leesei PR merged hexojs/hexo-theme-light#58 (comment) |
With this change, the generation time shorts from 3 min to 3 s for about 800 files. Reference: hexojs/hexo#1769
Can we only generate/deploy single file?
|
Hi guys, |
git clone -b source git@github.com:chilly/chilly.github.io.git hexo generate is too slow. only 600+ posts. And cost more then 10 mins. |
hexo generate is too slow. only 600+ posts. And cost more then 10 mins. Me 2 |
Is this a normal generation time for 400 posts? seems awfully slow to me. Every change I make on a layout or a css takes ages to be generated.
hexo g -w
is barely unusable.FWIW:
Similar results with
enable: false
.Theme is
light
.The text was updated successfully, but these errors were encountered: