You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect 1K pages rendering to take significantly less time and less memory.
Actual Behavior
When I try to build on a 2GB memory container, it fails with Out of Memory Error (Exit Status 137). It takes about 1 hr on 4GB machine with 4 vCPUs to build.
As it seems from the building process, preact build all of the files in memory first and then emits them, instead of emitting one by one and clearing the memory in process. This probably leads to such high memory usage.
On similar pre-rendering frameworks like react-static and Gatsby it takes about 5 min each for the same job.
I love Preact but it seems I won't be able to scale the pre-rendering for my site with it.
The text was updated successfully, but these errors were encountered:
Reproduction
Please try building this repo
Steps to reproduce
I am building with pre-render about 1000 pages.
Expected Behavior
I expect 1K pages rendering to take significantly less time and less memory.
Actual Behavior
When I try to build on a 2GB memory container, it fails with Out of Memory Error (Exit Status 137). It takes about 1 hr on 4GB machine with 4 vCPUs to build.
As it seems from the building process, preact build all of the files in memory first and then emits them, instead of emitting one by one and clearing the memory in process. This probably leads to such high memory usage.
On similar pre-rendering frameworks like
react-static
andGatsby
it takes about 5 min each for the same job.I love Preact but it seems I won't be able to scale the pre-rendering for my site with it.
The text was updated successfully, but these errors were encountered: