punch-blog
punch-blog copied to clipboard
Performance is pretty terrible
Takes 20+ seconds to do an empty run here (with 194 posts already processed).
Using node v0.10.0, punch 0.5.19, and punch-blog from master as of fb941dd0. I'll upload my whole repo so everyone can see it.
See clee/punch-blog@1de850d7c8f874c7a226ea85c429b7eb8f5fb23e for my config - tell me if I'm doing something crazy wrong?
Is it to generate or generate & publish?
First run likely to take time because it needs to generate all pages. But subsequent runs should be considerably fast as it only checks for modified pages.
Also, if you want to preview your changes as you do them, you can use the server mode (punch s
).
This is for generate, no publish.
According to punch, generate-all takes 32.886 seconds. Running generate again with no changes takes 29.077 seconds.
I agree generation time could be a PITA for a large site. I'll be focusing on optimizing the generation process in the next iteration. Thanks for pointing this out.
How do you debug performance on node.js? I think it might be time for some research...