Skip to content

Simplify installation of zola #1675

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

Merged
merged 2 commits into from
Aug 9, 2025
Merged

Simplify installation of zola #1675

merged 2 commits into from
Aug 9, 2025

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Aug 9, 2025

@senekor senekor force-pushed the senekor/mmmxtwrtwlnw branch from 70b10dc to edaa11a Compare August 9, 2025 11:07
@senekor senekor requested a review from Manishearth August 9, 2025 11:15
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would perhaps suggest using --debug in the README, otherwise LGTM.

@senekor
Copy link
Contributor Author

senekor commented Aug 9, 2025

I would perhaps suggest using --debug in the README, otherwise LGTM.

Did a quick performance check on my laptop:

  • debug: 2min to compile, 16sec for incremental rebuild
  • release: 7min to compile, 8sec for incremental rebuild

That rebuild time difference is pretty painful TBH, not sure I'd recommend the debug build with that.

But then I noticed that zola serve has a --fast flag which makes it rebuild only pages that changed. (IDK why that isn't the default.) That put both builds under 2 seconds for incremental rebuild, so the debug build is perfectly fine. I'm updating the docs to recommend the --fast flag.

@Kobzol
Copy link
Member

Kobzol commented Aug 9, 2025

Heh, I was wondering why Zola was so slow for me.. like it was much slower than Jekyll. I also wonder why incremental isn't the default.

Zola takes a long time to compile. For blog authors, it's probably
better to compile zola a little faster while sacrificing some
performance when building the site.

By default, zola rebuilds every page when something changes. Debug
builds perform noticeably worse in that case. But with the `--fast`
flag, zola only rebuilds pages that actually changed. With that, the
performance of debug and release builds not not noticeably different.
@senekor senekor enabled auto-merge August 9, 2025 18:16
@senekor
Copy link
Contributor Author

senekor commented Aug 9, 2025

Okay, just need another approval 🙂

@senekor senekor merged commit 3921c2d into master Aug 9, 2025
5 checks passed
@senekor senekor deleted the senekor/mmmxtwrtwlnw branch August 9, 2025 18:16
@senekor
Copy link
Contributor Author

senekor commented Aug 9, 2025

Ah no, it was blocked because of the unresolved conversation.

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.

3 participants