makeabilitylab / physcomp

Physical Computing course website
https://makeabilitylab.github.io/physcomp/
MIT License
33 stars 6 forks source link

Build times super slow #81

Open jonfroehlich opened 5 months ago

jonfroehlich commented 5 months ago

Even on an AMD Ryzen 7 3800X with 8 processors (3.90GHz) and 32GB RAM, the build times of this site can be painfully slow: ~20 seconds. Using Google Gemini to help me debug, Gemini suggested I profile and also enable liquid caching and disable search on local builds.

Here's the profiling results:

(base) PS D:\Git\physcomp> bundle exec jekyll build --profile Configuration file: D:/Git/physcomp/_config.yml To use retry middleware with Faraday v2.0+, install faraday-retry gem Source: D:/Git/physcomp Destination: D:/Git/physcomp/_site Incremental build: enabled Generating... Remote Theme: Using theme just-the-docs/just-the-docs

Filename                                                                           | Count |    Bytes |  Time
-----------------------------------------------------------------------------------+-------+----------+------
_layouts/default.html                                                              |   117 | 5858.33K | 7.395
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/head.html                      |   117 |  427.80K | 1.672
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/icons.html               |   117 |  464.57K | 1.249
assets/css/just-the-docs-head-nav.css                                              |     1 |    0.19K | 1.217
assets/js/zzzz-search-data.json                                                    |     1 |  995.80K | 1.088
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/css/activation.scss.liquid     |   117 |   73.66K | 0.779
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/header.html         |   117 |   93.69K | 0.742
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/vendor/anchor_headings.html    |   117 | 2489.86K | 0.669
_layouts/vendor/compress.html                                                      |   117 | 5558.76K | 0.604
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/breadcrumbs.html    |   117 |   27.89K | 0.587
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/sidebar.html        |   117 | 1884.45K | 0.483
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/footer.html         |   117 |  414.67K | 0.248
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/search_header.html  |   117 |   53.13K | 0.195
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/children_nav.html   |    12 |    4.15K | 0.106
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/site_nav.html       |     1 |   15.33K | 0.076
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/nav.html            |     1 |   15.26K | 0.067
_includes/head_custom.html                                                         |   117 |  115.93K | 0.041
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/sorted_pages.html              |    13 |    0.00K | 0.037
_includes/footer_custom.html                                                       |   117 |  408.96K | 0.035
_layouts/table_wrappers.html                                                       |   117 | 5860.67K | 0.035
communication/p5js-serial-io.md                                                    |     1 |  106.08K | 0.034
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/aux_nav.html        |   117 |   31.99K | 0.033
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/title.html                     |   117 |    2.63K | 0.022
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/css/just-the-docs.scss.liquid  |     4 |   40.91K | 0.022
_includes/nav_footer_custom.html                                                   |   117 |   44.45K | 0.019
advancedio/oled.md                                                                 |     1 |   78.92K | 0.019
communication/p5js-paint-io.md                                                     |     1 |   85.04K | 0.019
communication/handpose-serial.md                                                   |     1 |   72.20K | 0.018
communication/web-serial.md                                                        |     1 |   68.20K | 0.017
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/favicon.html                   |     1 |    0.00K | 0.016
communication/serial-intro.md                                                      |     1 |   55.98K | 0.015
communication/ml5js-serial.md                                                      |     1 |   73.21K | 0.015
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/components/search_footer.html  |   117 |    4.23K | 0.015
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/search_placeholder_custom.html |   117 |    2.97K | 0.012
assets/css/just-the-docs-dark.scss                                                 |     1 |   10.25K | 0.012
esp32/tone.md                                                                      |     1 |   45.38K | 0.012
communication/p5js-serial.md                                                       |     1 |   56.20K | 0.010
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/external_link.html       |   117 |   61.70K | 0.008
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/lunr/custom-data.json          |     1 |    0.00K | 0.008
arduino/led-blink3.md                                                              |     1 |   28.16K | 0.007
assets/css/just-the-docs-light.scss                                                |     1 |   10.22K | 0.007
assets/css/just-the-docs-default.scss                                              |     1 |   10.22K | 0.006
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/document.html            |   117 |   48.67K | 0.006
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/css/callouts.scss.liquid       |     4 |   40.33K | 0.006
arduino/piano.md                                                                   |     1 |   30.39K | 0.005
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/code_copy.html           |   117 |  153.79K | 0.005
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/link.html                |   117 |   52.22K | 0.005
advancedio/smoothing-input.md                                                      |     1 |   32.31K | 0.005
arduino/buttons.md                                                                 |     1 |   39.66K | 0.005
jekyll-remote-theme-20240522-36144-yqjoqh/_includes/icons/menu.html                |   117 |   49.36K | 0.005
                done in 20.385 seconds.