-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asciidoc: Rebuild time increases by factor 40 from 0.123.0 onwards #12375
Comments
I created a test case in 74e9129 -- assuming it would fail, but it doesn't. Which means that we would need more information to figure out what happens (e.g. the full site source). A general note:
|
I meanwhile stripped my page down to a minimal example that already shows an increase from ~100ms to ~1s rebuild time for 20 (empty) pages when using 0.123.0 or newer. This is the setup I use:
Also downloaded the Geekdoc template in version 0.45.0 and extracted it to |
@toorog I have the similar issue in #12095 (seems to be the same issue). Have you tried running hugo with |
This is a minimal example matching @toorog's description:
The Geekdocs theme has several menu partials that walk the content tree, so I'm not surprised that a change in one place requires everything to be re-rendered. I haven't spent any time looking at whether the partial calls are cached, or if that would help the situation. AsciiDoc rendering via Hugo is very slow compared to Markdown rendering, which amplifies the difference in rebuild times when comparing versions. |
I ran some benchmarks for the following versions:
The build used Between different versions the cache was cleared ( Total build times:
step duration for 0.122.0 / 0.123.8:
From 0.123.x on, the rebuild time almost tripled and got as slow as the initial build (using HTML as output format). cpu-0.122.0_rebuild: https://flamegraph.com/share/ca5618fc-12e8-11ef-8204-e6b38c1ccd74 As only the cache directories are preserved and |
I am building a page containing ~250 asciidoc files. Using the same content + config, these are the re-build times when touching a file while
hugo server
is running:v0.122.0
: ~1.4sv0.123.0
and newer: >40sFor
>0.123.0
the debug logging shows that on every change, all pages are being rebuild. Whereas with0.122.0
and before, only the changed page was rebuild. This might be related to the following changelog entry:However, I was not able to dig any deeper since there's no commit or issue linked.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: