Skip to content

syncing static files seems 'slow' since 103.0 macOS #10328

@JohannesTheo

Description

@JohannesTheo

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 every hugo 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):

                   | EN
-------------------+------
  Pages            | 181
  Paginator pages  |   0
  Non-page files   |   0
  Static files     | 935
  Processed images |   0
  Aliases          |   0
  Sitemaps         |   1
  Cleaned          |   0

The timings have changed as follows:

# hugo_extended_0.103.0_darwin-universal:
hugo (initial call)    -> Total in 347228 ms
hugo ('cached' public) -> Total in   1281 ms
hugo server            -> Built in 347726 ms

# hugo_extended_0.102.3_macOS-universal:
hugo (initial call)    -> Total in  673 ms
hugo ('cached' public) -> Total in  659 ms
hugo server            -> Built in 1825 ms

Thanks in advance and let me know if I can or should provide more info on this - Johannes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions