New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syncing static files seems 'slow' since 103.0 macOS #10328
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Sep 26, 2022
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing. This fixes that by: * Making sure that the /static syncer always gets its own file system without any checks for the post process token. * For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images) Fixes gohugoio#10328
bep
added a commit
that referenced
this issue
Sep 26, 2022
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing. This fixes that by: * Making sure that the /static syncer always gets its own file system without any checks for the post process token. * For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images) Fixes #10328
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there, since 0.103.0 I noticed a significant 'slowdown' in syncing static files on macOS (hugo_extended_0.103.0_darwin-universal). The slowdown appears when public is empty so only the initial
hugo
call is affected. After that it's fast again (makes sense) but the problem persists for everyhugo server
call which went up from seconds to minutes since 0.102.3. I was wondering if this is intended (or expected) behaviour and I have to change my project or if there is something wrong?Here is a quick overview of my os, project and the timings I get with 0.103.0 vs. 0.102.3 (104 is ~same as 103):
I run a macbook Pro M1 with 12.6 Monterey. The project looks as follows and the resulting public folder is ~388MB (161MB videos + 147MB images). Since 103, the syncing of static files is very slow in comparison (checked with --debug, it's them):
The timings have changed as follows:
Thanks in advance and let me know if I can or should provide more info on this - Johannes
The text was updated successfully, but these errors were encountered: