I have about 10K posts in my site. I am using pagination, at 50 items per page; and I am not using taxonomies. My theme is available here for review. The 10K pages of content has not been published yet, but it’s a mix of long-form blog posts and a complete Twitter export of all my tweets converted to Markdown.
When I generate my site on my MacBook, with 16GB of RAM, hugo takes about 6 seconds.
When I generate my site on my server, with 1GB of RAM, hugo takes between 15 and 20 seconds.
I fully understand that the low-memory server will require more time to generate the site. I’m mostly just curious if there are any suggestions for ways to shave off some time? Am I doing anything obviously sub-optimal within my theme files that could be improved?
I’d eventually like to start publishing via a micropub endpoint directly to my server, and have that endpoint invoke Hugo to generate the new content. Waiting ~20 seconds isn’t going to ruin my life, but I am concerned about the scripts timing out eventually. I can raise the max execution time of the scripts; but I’d like to know if there are any other things I can do to improve the hugo experience.
Thanks in advance!