Skip to content
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

Possible performance issues #324

Closed
faassen opened this issue May 27, 2024 · 3 comments
Closed

Possible performance issues #324

faassen opened this issue May 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@faassen
Copy link
Contributor

faassen commented May 27, 2024

Bug Report

I am getting a slow performance generating my blog, detailed here:

getzola/zola#2508

It's possible Tabi plays a part here so I hope you don't mind I pull you in.

Do you have any idea what in the page or atom template could be causing slowness?

I have gone live with my zola and tabi based blog yesterday by the way, thanks for all your help! I like it:

https://blog.startifact.com

@faassen faassen added the bug Something isn't working label May 27, 2024
@faassen
Copy link
Contributor Author

faassen commented May 29, 2024

I've done some experimenting, and if I stop using the evaluate_setting_priority macro the build time goes from 8+ seconds on my laptop to under 1 second. I'm not sure why this happens, but it's pretty drastic.

@faassen
Copy link
Contributor Author

faassen commented May 30, 2024

Thanks to the zola devs, this change speeds up the build times massively. It takes less than 700 ms now on the same machine. In evaluate_setting_priority change:

{%- set current_section = get_section(path=last_ancestor.0) %}

to:

{%- set current_section = get_section(path=last_ancestor.0, metadata_only=true) %}

@welpo
Copy link
Owner

welpo commented May 30, 2024

Thank you so much! Sorry I didn't have time to check this earlier, but I'm really happy you managed to solve it! Merging the PR now.

@welpo welpo closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants