Skip to content

optimize Jekyll partial rendering with include_cached#146

Merged
basantakhakurel merged 1 commit into
sourcefrom
faster_build
Apr 21, 2026
Merged

optimize Jekyll partial rendering with include_cached#146
basantakhakurel merged 1 commit into
sourcefrom
faster_build

Conversation

@basantakhakurel

Copy link
Copy Markdown
Contributor

With Antigravity's help, I tried speeding up our site build.

Changes:

  1. Included jekyll-include-cache plugin that converts frequently used includes to include_cached.
  2. Snippet blocks are now cached in memory during the build process, so every snippet call does not have to go to the Rev script multiple times.

Before:

done in 143.483 seconds.

After:

done in 64.18 seconds.

Checks:

GitHub Actions should always do a fresh build, so it would generate the expected site we already have.
In my test, going through a few pages (especially the 404 error and the documentation pages), it didn't seem to break anything.

@bredelings bredelings left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! Twice as fast!

On my desktop, 76s -> 34s.

@basantakhakurel basantakhakurel marked this pull request as ready for review April 21, 2026 12:28
@basantakhakurel basantakhakurel merged commit 559d8fb into source Apr 21, 2026
4 checks passed
@bredelings bredelings deleted the faster_build branch April 21, 2026 12:29
github-actions Bot added a commit that referenced this pull request Apr 21, 2026
optimize Jekyll partial rendering with include_cached 559d8fb
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.

2 participants