Slow Built with Millions of Pagination Pages

I tried to build an existing Hugo project on a new laptop. On my old laptop, it builds in about 10 seconds with 1,000 pagination pages. In the new laptop, the exact same content took over 8 hours and produced 10 million pangination pages. (Over 20 GB of disk space.)

The only difference: the old laptop is still on 0.62 and the new one is 0.64.

Any idea what’s causing this? Everything is identical, as I just cloned the project from my Bitbucket repo.

Thanks.

I also tried creating a fresh Hugo project and loading the existing content. Result was the same.

I started over from scratch. It’s no longer creating millions of pages (from <10,000 source pages), but it still takes 2-5 minutes to build locally.

I have MacBook Air 2019 with 16GB RAM.

Here’s my templateMetrics:

Building sites … 
Template Metrics:

     cumulative       average       maximum         
       duration      duration      duration  count  template
     ----------      --------      --------  -----  --------
  6m30.204882309s  108.390245ms  431.146804ms   3600  partials/sidebar.html
  6m29.535068041s  116.418131ms  460.096158ms   3346  _default/list.html
  28.953657385s  113.990777ms  384.291578ms    254  index.html
  12.226905195s    2.372774ms   31.971126ms   5153  partials/footer.html
   5.669422649s    3.652978ms   33.346589ms   1552  _default/single.html
    3.36238701s     286.111µs   28.712705ms  11752  _default/post.html
   2.326038929s     451.395µs   23.343418ms   5153  partials/header.html
   1.927133022s     698.489µs   191.56445ms   2759  _internal/_default/rss.xml
   1.871919122s     363.267µs    23.28718ms   5153  partials/head.html
   249.361595ms      48.391µs   12.610898ms   5153  partials/preloader.html
     218.3856ms      79.125µs   22.863719ms   2760  _internal/alias.html
   117.062033ms  117.062033ms  117.062033ms      1  _internal/_default/sitemap.xml
    83.878752ms   83.878752ms   83.878752ms      1  _default/index.json
    17.474205ms   17.474205ms   17.474205ms      1  about/single.html
     2.243429ms     160.244µs     555.893µs     14  _internal/shortcodes/youtube.html
      589.562µs     589.562µs     589.562µs      1  _internal/shortcodes/twitter.html
      533.782µs     533.782µs     533.782µs      1  _internal/shortcodes/tweet.html
       80.846µs      80.846µs      80.846µs      1  404.html


                   |  EN   
+------------------+------+
  Pages            | 7073  
  Paginator pages  |  840  
  Non-page files   |    0  
  Static files     |  108  
  Processed images |    0  
  Aliases          | 2760  
  Sitemaps         |    1  
  Cleaned          |    0  

Total in 116163 ms

Any symlinks in your content dir(s)?