Skip to content

Optimize Site#each_site_file#9187

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
ashmaroli:optimize-site-each_site_file
Dec 18, 2022
Merged

Optimize Site#each_site_file#9187
jekyllbot merged 1 commit intojekyll:masterfrom
ashmaroli:optimize-site-each_site_file

Conversation

@ashmaroli
Copy link
Copy Markdown
Member

  • This is a 🔨 code refactoring change.

Summary

Site#each_site_file reduced in performance in Jekyll v4.3.0 owing to additional checks to filter duplicate entries of static files from a collection.

This pull request optimizes the regression by avoiding duplicate entries of static files itself thereby removing the need for additional checks and filtering.

Notes

Consider backporting to the 4.3-stable branch.

@ashmaroli ashmaroli added fix refactor backport-candidate Consider for merge into an older stable branch labels Nov 18, 2022
@ashmaroli
Copy link
Copy Markdown
Member Author

@jekyllbot: merge +fix

@jekyllbot jekyllbot merged commit b2891a4 into jekyll:master Dec 18, 2022
@jekyllbot jekyllbot added the bug label Dec 18, 2022
jekyllbot added a commit that referenced this pull request Dec 18, 2022
@ashmaroli ashmaroli deleted the optimize-site-each_site_file branch December 18, 2022 13:20
github-actions bot pushed a commit that referenced this pull request Dec 18, 2022
Ashwin Maroli: Optimize `Site#each_site_file` (#9187)

Merge pull request 9187
ashmaroli added a commit to ashmaroli/jekyll that referenced this pull request Jan 15, 2023
ashmaroli added a commit that referenced this pull request Jan 16, 2023
DavidS added a commit to DavidS/jekyll that referenced this pull request Apr 29, 2023
@jekyll jekyll locked and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport-candidate Consider for merge into an older stable branch bug fix frozen-due-to-age refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants