Performance comparison when building a more than 5000 posts site #1091
Replies: 3 comments 3 replies
-
|
Hello, I'm replying to your discussion because I'm in a similar case: I was wondering if you (or someone else) had found a way to reduce that building load? I wonder if there's a feature that I can disable to solve the problem? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I completely skipped this discussion 😞. After looking at the code, I think the main cause is the line: This line removes hidden posts by doing a set intersection. The complexity of this operation will increase with the size of post collection. I don't remember why this was implemented this way (which is very inefficient) instead of using the Either way, I have pushed a fix that uses The fix is here: #1212 |
Beta Was this translation helpful? Give feedback.
-
|
Hello, thanks a lot for the patch, it worked very well : I did a commit + push this morning and the deployment to github pages lowered from an average of 3h to less than 30 minutes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I've being test a site with more than 5000 posts, and performance has been significant reduced. There a some limit static site might hit, for example Cloudflare Pages has a 20 mins building timeout limit, Github Pages has a 10 mins. Which means if building time exceed 10/20 mins, this site is no longer able to deploy.
Below performance is running on a M2 laptop, building on Pages service typically cost 2 times long of this. So in this case, I cannot deploy on Cloudflare anymore.
Performance metric on stack:
Another theme's metric(while it's not a apple to apple comparison):
I think the reason is complicated index page when doing pagination. One way to reduce the overall time cost is set pagination from default 10 to 100, however it's a workaround any, and 100 posts a page doesn't sound like reasonable...:)
I put this in a dicussion just to report what I found recently.
Beta Was this translation helpful? Give feedback.
All reactions