'Fast render' is significantly slower on 0.62.1 versus 0.62.0

When I build the same site with the same settings, the ‘Fast Render’ reload is considerably slower on my computer with the new Hugo compared with the ‘old’ Hugo.

How do I troubleshoot this to find the problem?


Hugo 0.62.0

There are no problems in speed with 0.62.0 for me:

C:\site>hugo620 env
Hugo Static Site Generator v0.62.0/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.13.4"

C:\site>hugo620 server -DF
Building sites …
                   |  EN
+------------------+------+
  Pages            |  483
  Paginator pages  |    0
  Non-page files   |    0
  Static files     | 1149
  Processed images |    0
  Aliases          |    0
  Sitemaps         |    1
  Cleaned          |    0

Built in 6658 ms
Watching for changes in C:\site\{content,data,static,themes}
Watching for config changes in C:\site\config\_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change detected, rebuilding site.
2020-01-10 11:23:37.979 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 290 ms

Change detected, rebuilding site.
2020-01-10 11:23:39.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 215 ms

Change detected, rebuilding site.
2020-01-10 11:23:41.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 219 ms

Change detected, rebuilding site.
2020-01-10 11:23:43.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 210 ms

Change detected, rebuilding site.
2020-01-10 11:23:45.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 223 ms

Change detected, rebuilding site.
2020-01-10 11:23:47.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 195 ms

Change detected, rebuilding site.
2020-01-10 11:23:50.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 193 ms

Change detected, rebuilding site.
2020-01-10 11:23:53.981 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 204 ms

Change detected, rebuilding site.
2020-01-10 11:23:55.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 191 ms

Change detected, rebuilding site.
2020-01-10 11:23:58.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 191 ms

Change detected, rebuilding site.
2020-01-10 11:24:00.980 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 195 ms

Change detected, rebuilding site.
2020-01-10 11:24:02.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 217 ms

Change detected, rebuilding site.
2020-01-10 11:24:04.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 189 ms

Change detected, rebuilding site.
2020-01-10 11:24:06.978 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 170 ms

As you can see, the rebuilds happen in around 200ms. That’s pretty normal for my computer.

This is the computer resources that Hugo 0.62.0 uses:

Very good! :slight_smile:

Hugo 0.62.1

Troubles started on my computer with version 0.62.1:

C:\site>hugo621 env
Hugo Static Site Generator v0.62.1/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.13.4"

C:\site>hugo621 server -DF
Building sites …
                   |  EN
+------------------+------+
  Pages            |  483
  Paginator pages  |    0
  Non-page files   |    0
  Static files     | 1149
  Processed images |    0
  Aliases          |    0
  Sitemaps         |    1
  Cleaned          |    0

Built in 6632 ms
Watching for changes in C:\site\{content,data,static,themes}
Watching for config changes in C:\site\config\_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change detected, rebuilding site.
2020-01-10 11:27:00.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4678 ms

Change detected, rebuilding site.
2020-01-10 11:27:09.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4672 ms

Change detected, rebuilding site.
2020-01-10 11:27:34.752 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4460 ms

Change detected, rebuilding site.
2020-01-10 11:27:43.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4579 ms

Change detected, rebuilding site.
2020-01-10 11:27:52.752 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4601 ms

Change detected, rebuilding site.
2020-01-10 11:28:01.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4612 ms

Change detected, rebuilding site.
2020-01-10 11:28:09.752 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4600 ms

Change detected, rebuilding site.
2020-01-10 11:28:18.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4578 ms

Change detected, rebuilding site.
2020-01-10 11:28:26.752 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4612 ms

Change detected, rebuilding site.
2020-01-10 11:28:44.752 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4552 ms

Change detected, rebuilding site.
2020-01-10 11:28:51.753 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4619 ms

Now Hugo takes 4.5 seconds in ‘Fast Render’ mode. In terms of time spend, that looks like a complete website rebuild. :thinking:

Hugo is also a lot more aggressive on the computer resources during those ‘Fast Render’ reloads:


I of course read the releasenotes for 0.62.1 but I don’t see anything there that would explain this behaviour. That is, no mention of changes that I need to adjust in my template code.


Test setup:

  • Same Hugo settings and everything else.
  • The change I made to header.html was adding a newline with [Enter] and removing it again with [Backspace]. So no Hugo template code changes.
1 Like

I’m not able to replicate this behavior (on Linux). Is your site source publicly available?

What happens if you modify a single content file instead of your header partial? Can you replicate this behavior with v0.62.2?

Hmm… 062.1 was a fairly small release, so there is only of those commits that can be the sinner. I notice you’re on Windows, so I’m guessing this is a path slash issue where I stumbled wrong – and that we suddenly build more than needed in your case.

My Windows image (Parallels) have been cranking up on my new MacBook (much faster MacBook, much slower Windows), but I will take it for a spin. If you could somehow share your project with me, It would make it easier.

I just tested on Windows amd64 and still can’t reproduce. Running in the hugo repo:

hugo.exe server -s .\docs\

Rebuild times are similar between v0.62.0, v0.62.1, and master when modifying .\docs\_vendor\github.com\gohugoio\gohugoioTheme\layouts\partials\site-scripts.html.

1 Like

(Sorry for the late reply, I was/am sick.)

Yes, the problem is actually present in the last release, but with testing I found that it happened in 0.62.1 for the first time for me.

Content files trigger a ‘Fast Render’ that as quick as before on 0.62.1 (< 200ms) so no problem there. But the templates do take more time.

C:\site>hugo621 server -DF
Building sites …
                   |  EN
+------------------+------+
  Pages            |  485
  Paginator pages  |    0
  Non-page files   |    0
  Static files     | 1150
  Processed images |    0
  Aliases          |    0
  Sitemaps         |    1
  Cleaned          |    0

Built in 9110 ms
Watching for changes in C:\site\{content,data,static,themes}
Watching for config changes in C:\site\config\_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change detected, rebuilding site.
2020-01-14 17:06:14.557 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4587 ms

Change detected, rebuilding site.
2020-01-14 17:06:21.558 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4596 ms

Change detected, rebuilding site.
2020-01-14 17:06:28.557 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 5365 ms

Change detected, rebuilding site.
2020-01-14 17:06:36.557 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
Total in 4853 ms

Change detected, rebuilding site.
2020-01-14 17:06:45.557 +0100
Source changed "C:\\site\\content\\post.md": WRITE
Total in 185 ms

Change detected, rebuilding site.
2020-01-14 17:06:52.557 +0100
Source changed "C:\\site\\content\\post.md": WRITE
Total in 152 ms

Change detected, rebuilding site.
2020-01-14 17:06:57.557 +0100
Source changed "C:\\site\\content\\post.md": WRITE
Total in 186 ms

Change detected, rebuilding site.
2020-01-14 17:07:02.558 +0100
Source changed "C:\\site\\content\\post.md": WRITE
Total in 176 ms

Verbose output

In case it helps, I also collected output with the --templateMetrics flag enabled. From that output I can see that a Hugo 0.62.1 fast render rebuild affects a lot more files than 0.62.0 did.

Here’s the good situation with 0.62.0:

C:\site>hugo620 server -DF --verbose --templateMetrics
INFO 2020/01/10 11:49:40 No translation bundle found for default language "en"
INFO 2020/01/10 11:49:40 Translation func for language en not found, use default.
INFO 2020/01/10 11:49:40 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.
INFO 2020/01/10 11:49:40 Using config file:
Building sites … INFO 2020/01/10 11:49:40 removing all files from destination that don't exist in static dirs
INFO 2020/01/10 11:49:40 syncing static files to C:\site\

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     9.7015542s   23.836742ms    152.0087ms    407  _default/single.html
     4.1602379s   832.04758ms    2.7211557s      5  _default/section.html
     3.3521921s    7.178141ms     39.0022ms    467  partials/footer.html
     3.0661739s    6.565682ms    143.0081ms    467  partials/header.html
     1.3430769s   27.980768ms    250.0143ms     48  _default/subsection.html
     965.0552ms    965.0552ms    965.0552ms      1  custom/algolia-index.json
     910.0521ms     713.206µs     42.0024ms   1276  shortcodes/img.html
     624.0347ms      77.279µs     23.0013ms   8075  _default/_markup/render-link.html
     479.0278ms    1.591454ms      9.0005ms    301  _internal/shortcodes/highlight.html
     168.0099ms     361.311µs      1.0001ms    465  partials/breadcrumbs.html
     128.0073ms    25.60146ms     44.0025ms      5  _default/page.html
      89.0051ms     89.0051ms     89.0051ms      1  sitemap.xml
      67.0045ms     149.563µs      6.0003ms    448  shortcodes/note.html
      66.0032ms     162.569µs      1.0001ms    406  shortcodes/references.html
      44.0025ms     44.0025ms     44.0025ms      1  index.html
      40.0023ms     305.361µs      1.0001ms    131  shortcodes/read-more.html
      33.0019ms     221.489µs      2.0002ms    149  shortcodes/tip.html
      20.0011ms     4.00022ms      4.0003ms      5  custom/atom-feed.xml
      20.0011ms     4.00022ms      5.0003ms      5  custom/rss-feed.xml
       17.001ms      3.4002ms      4.0003ms      5  custom/json-feed.json
       4.0002ms      4.0002ms      4.0002ms      1  404.html


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

Built in 5731 ms
Watching for changes in C:\site\{content,data,static,themes}
Watching for config changes in C:\site\config\_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
INFO 2020/01/10 11:50:07 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:50:07.160 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:50:07 No translation bundle found for default language "en"
INFO 2020/01/10 11:50:07 Translation func for language en not found, use default.
INFO 2020/01/10 11:50:07 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
      92.0053ms     92.0053ms     92.0053ms      1  sitemap.xml
      13.0007ms     6.50035ms      9.0005ms      2  partials/footer.html
      12.0006ms     12.0006ms     12.0006ms      1  index.html
       5.0003ms      5.0003ms      5.0003ms      1  404.html
            1ms         500µs           1ms      2  partials/header.html

Total in 189 ms
INFO 2020/01/10 11:50:13 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:50:13.161 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:50:13 No translation bundle found for default language "en"
INFO 2020/01/10 11:50:13 Translation func for language en not found, use default.
INFO 2020/01/10 11:50:13 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
      89.0051ms     89.0051ms     89.0051ms      1  sitemap.xml
      13.0007ms     13.0007ms     13.0007ms      1  index.html
      12.0007ms     6.00035ms      9.0005ms      2  partials/footer.html
       4.0002ms      4.0002ms      4.0002ms      1  404.html
       3.0001ms     1.50005ms      2.0001ms      2  partials/header.html

Total in 181 ms
INFO 2020/01/10 11:50:19 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:50:19.160 +0100
Template changed "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:50:19 No translation bundle found for default language "en"
INFO 2020/01/10 11:50:19 Translation func for language en not found, use default.
INFO 2020/01/10 11:50:19 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
      91.0052ms     91.0052ms     91.0052ms      1  sitemap.xml
      12.0007ms     6.00035ms      9.0005ms      2  partials/footer.html
      12.0007ms     12.0007ms     12.0007ms      1  index.html
       4.0002ms      4.0002ms      4.0002ms      1  404.html
       2.0001ms     1.00005ms      1.0001ms      2  partials/header.html

Total in 163 ms

This is the ‘bad’ situation with 0.62.1:

C:\site>hugo621 server -DF --verbose --templateMetrics
INFO 2020/01/10 11:51:03 No translation bundle found for default language "en"
INFO 2020/01/10 11:51:03 Translation func for language en not found, use default.
INFO 2020/01/10 11:51:03 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.
INFO 2020/01/10 11:51:03 Using config file:
Building sites … INFO 2020/01/10 11:51:03 removing all files from destination that don't exist in static dirs
INFO 2020/01/10 11:51:03 syncing static files to C:\site\

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     9.6685519s   23.755655ms     159.009ms    407  _default/single.html
     4.1352366s   827.04732ms    2.6711528s      5  _default/section.html
     3.3221897s    7.113896ms     77.0044ms    467  partials/footer.html
     2.9631675s    6.345112ms    149.0085ms    467  partials/header.html
     1.3280757s   27.668243ms    212.0121ms     48  _default/subsection.html
     992.0567ms    992.0567ms    992.0567ms      1  custom/algolia-index.json
     701.0407ms     549.404µs     32.0018ms   1276  shortcodes/img.html
     626.0363ms      77.527µs     23.0013ms   8075  _default/_markup/render-link.html
      482.028ms    1.601421ms     25.0014ms    301  _internal/shortcodes/highlight.html
     194.0124ms      417.23µs     39.0023ms    465  partials/breadcrumbs.html
      94.0054ms     94.0054ms     94.0054ms      1  sitemap.xml
      90.0052ms    18.00104ms     33.0019ms      5  _default/page.html
      77.0045ms     189.666µs     14.0008ms    406  shortcodes/references.html
      73.0036ms     162.954µs      2.0001ms    448  shortcodes/note.html
       67.004ms      511.48µs     27.0016ms    131  shortcodes/read-more.html
      39.0022ms     39.0022ms     39.0022ms      1  index.html
      27.0017ms     5.40034ms      6.0004ms      5  custom/atom-feed.xml
      26.0015ms     174.506µs      3.0001ms    149  shortcodes/tip.html
      23.0014ms     4.60028ms      6.0004ms      5  custom/rss-feed.xml
      21.0012ms     4.20024ms      5.0003ms      5  custom/json-feed.json
       4.0002ms      4.0002ms      4.0002ms      1  404.html


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

Built in 5789 ms
Watching for changes in C:\site\{content,data,static,themes}
Watching for config changes in C:\site\config\_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
INFO 2020/01/10 11:51:13 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:51:13.089 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:51:13 No translation bundle found for default language "en"
INFO 2020/01/10 11:51:13 Translation func for language en not found, use default.
INFO 2020/01/10 11:51:13 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     4.2712443s    4.2712443s    4.2712443s      1  index.html
     4.2672441s   2.13362205s    4.2642439s      2  partials/footer.html
     432.0252ms     339.109µs     33.0018ms   1274  shortcodes/img.html
     422.0241ms      52.373µs      1.0001ms   8058  _default/_markup/render-link.html
     321.0182ms    1.066505ms      5.0003ms    301  _internal/shortcodes/highlight.html
      92.0053ms     92.0053ms     92.0053ms      1  sitemap.xml
      66.0037ms      162.57µs      1.0001ms    406  shortcodes/references.html
       60.004ms     133.937µs      1.0001ms    448  shortcodes/note.html
      31.0016ms     236.653µs      1.0001ms    131  shortcodes/read-more.html
      13.0009ms      87.254µs      1.0001ms    149  shortcodes/tip.html
       4.0002ms      4.0002ms      4.0002ms      1  404.html
       3.0002ms      1.5001ms      3.0002ms      2  partials/header.html

Total in 4437 ms
INFO 2020/01/10 11:51:26 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:51:26.091 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:51:26 No translation bundle found for default language "en"
INFO 2020/01/10 11:51:26 Translation func for language en not found, use default.
INFO 2020/01/10 11:51:26 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     4.4812564s    2.2406282s    4.4762561s      2  partials/footer.html
     4.4812563s    4.4812563s    4.4812563s      1  index.html
     476.0273ms     373.647µs     29.0016ms   1274  shortcodes/img.html
     436.0245ms       54.11µs     66.0038ms   8058  _default/_markup/render-link.html
     346.0198ms    1.149567ms      6.0004ms    301  _internal/shortcodes/highlight.html
      95.0055ms     95.0055ms     95.0055ms      1  sitemap.xml
      60.0035ms     147.791µs      1.0001ms    406  shortcodes/references.html
      54.0033ms     120.543µs      1.0001ms    448  shortcodes/note.html
      30.0015ms     229.019µs      1.0001ms    131  shortcodes/read-more.html
      20.0012ms     134.236µs      1.0001ms    149  shortcodes/tip.html
       5.0003ms      5.0003ms      5.0003ms      1  404.html
       1.0001ms      500.05µs      1.0001ms      2  partials/header.html

Total in 4714 ms
INFO 2020/01/10 11:51:34 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:51:34.090 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:51:34 No translation bundle found for default language "en"
INFO 2020/01/10 11:51:34 Translation func for language en not found, use default.
INFO 2020/01/10 11:51:34 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     4.3392482s    4.3392482s    4.3392482s      1  index.html
     4.3392482s    2.1696241s    4.3352479s      2  partials/footer.html
     465.0281ms       57.71µs      1.0001ms   8058  _default/_markup/render-link.html
     460.0265ms     361.088µs      35.002ms   1274  shortcodes/img.html
     337.0196ms    1.119666ms      5.0003ms    301  _internal/shortcodes/highlight.html
      92.0053ms     92.0053ms     92.0053ms      1  sitemap.xml
       53.003ms      118.31µs      1.0001ms    448  shortcodes/note.html
      51.0026ms     125.622µs      1.0001ms    406  shortcodes/references.html
      31.0017ms     236.654µs      1.0001ms    131  shortcodes/read-more.html
      21.0009ms     140.945µs      1.0001ms    149  shortcodes/tip.html
       5.0003ms      5.0003ms      5.0003ms      1  404.html
       2.0001ms     1.00005ms      1.0001ms      2  partials/header.html

Total in 4514 ms
INFO 2020/01/10 11:51:41 Received System Events: ["C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE]

Change detected, rebuilding site.
2020-01-10 11:51:41.091 +0100
Template added "C:\\site\\themes\\theme2018\\layouts\\partials\\header.html": WRITE
INFO 2020/01/10 11:51:41 No translation bundle found for default language "en"
INFO 2020/01/10 11:51:41 Translation func for language en not found, use default.
INFO 2020/01/10 11:51:41 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.

Template Metrics:

     cumulative       average       maximum
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
     4.7402711s    4.7402711s    4.7402711s      1  index.html
     4.7402711s   2.37013555s     4.737271s      2  partials/footer.html
     502.0287ms     394.057µs     32.0019ms   1274  shortcodes/img.html
     467.0272ms      57.958µs      2.0001ms   8058  _default/_markup/render-link.html
     350.0201ms    1.162857ms      6.0004ms    301  _internal/shortcodes/highlight.html
     103.0058ms    103.0058ms    103.0058ms      1  sitemap.xml
      52.0035ms     116.079µs      1.0001ms    448  shortcodes/note.html
      49.0026ms     120.696µs      1.0001ms    406  shortcodes/references.html
      29.0014ms     221.384µs      1.0001ms    131  shortcodes/read-more.html
      20.0011ms     134.235µs      2.0001ms    149  shortcodes/tip.html
       4.0002ms      4.0002ms      4.0002ms      1  404.html
       2.0001ms     1.00005ms      1.0001ms      2  partials/header.html

Total in 4932 ms

The repository is private but I put the website itself in this zip file.

I tested again on my side and the issue also happens with the exact site in that zip folder.

Thanks a lot in advance for looking, and let me know if I can provide more information or do more tests. :wave:

2 Likes

Friendly bump. :slight_smile:

I’m not impatient or in a hurry, but neither want this topic to be forgotten. Thanks for anyone who has an idea.

I think I know what is happening and I’m pretty sure I have fixed it in a working branch that is going to be merged soon (tomorrow) … I will release a 0.63 release this week.

See https://github.com/gohugoio/hugo/issues/6784

2 Likes

That’s awesome! And very quick too! Thanks a lot already for the work you’ve done. :slight_smile:

With Hugo 0.63.1 everything is as quick as ever. :slightly_smiling_face: Fast render rebuilds for templates are now in +/- 180-200ms, which is as quick as it always was on my computer.

Thanks Bep for the fix! :+1: :hugs:

Issue: :white_check_mark: solved!

1 Like