Skip to content

Cache à la compilation#1335

Draft
arnaudlevy wants to merge 1 commit intomainfrom
partial-cache
Draft

Cache à la compilation#1335
arnaudlevy wants to merge 1 commit intomainfrom
partial-cache

Conversation

@arnaudlevy
Copy link
Member

@arnaudlevy arnaudlevy commented Feb 11, 2026

Type

  • Nouvelle fonctionnalité
  • Bug
  • Ajustement
  • Rangement

Description

Tentative d'optimisation des temps de compilation avec partialCached.

Niveau d'incidence

  • Incidence faible 😌
  • Incidence moyenne 😲
  • Incidence forte 😱

Benchmark

hugo serve --templateMetrics --templateMetricsHints

Sur le site example :

       cumulative       average       maximum      cache  percent  cached  total  
         duration      duration      duration  potential   cached   count  count  template
       ----------      --------      --------  ---------  -------  ------  -----  --------
    52.794114894s    9.397314ms   102.40016ms         13        0       0   5618  partials/commons/menu.html
    25.111730059s    48.01478ms  113.558829ms         68        0       0    523  partials/header/header.html
    22.835011753s  196.853549ms  2.433284605s          0        0       0    116  pages/section.html
    17.882708274s   17.882708ms  2.290467116s         42        0       0   1000  partials/contents/list.html
    16.519170542s    8.381111ms   68.291714ms         45        0       0   1971  partials/commons/image.html
    16.394179102s   282.65826ms  2.339712111s          4        0       0     58  partials/pages/single.html
     13.89217529s  100.667936ms  285.298452ms          0        0       0    138  _default/term.html
    13.222005848s   64.813754ms  696.166881ms          0        0       0    204  events/section.html
    12.869935737s     605.872µs   33.089388ms          0        0       0  21242  partials/GetImageUrl
    10.463788055s    8.785716ms   70.702509ms         32        0       0   1191  partials/commons/item/media.html
     8.281196988s   15.834028ms   78.320617ms         74        0       0    523  partials/footer/footer.html
     6.064136351s   16.000359ms   73.617807ms         30        0       0    379  partials/commons/image-figure.html
      5.99768241s   11.467843ms   57.528931ms         76        0       0    523  partials/footer/footer-simple.html

@arnaudlevy arnaudlevy changed the title cache Cache à la compilation Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant