punch-blog icon indicating copy to clipboard operation
punch-blog copied to clipboard

Performance is pretty terrible

Open clee opened this issue 11 years ago • 6 comments

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.

clee avatar Mar 21 '13 08:03 clee

See clee/punch-blog@1de850d7c8f874c7a226ea85c429b7eb8f5fb23e for my config - tell me if I'm doing something crazy wrong?

clee avatar Mar 21 '13 09:03 clee

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).

laktek avatar Mar 21 '13 09:03 laktek

This is for generate, no publish.

clee avatar Mar 21 '13 09:03 clee

According to punch, generate-all takes 32.886 seconds. Running generate again with no changes takes 29.077 seconds.

clee avatar Mar 21 '13 09:03 clee

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.

laktek avatar Mar 22 '13 02:03 laktek

How do you debug performance on node.js? I think it might be time for some research...

clee avatar Mar 22 '13 02:03 clee