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

Memoize destination of pages, documents and staticfiles #8458

Merged
merged 2 commits into from
Nov 6, 2020

Conversation

ashmaroli
Copy link
Member

  • This is an optimization change.

Summary

Because multiple calls to the :destination method with the same dest_dir (generally @site.dest) will result in unnecessary computations and allocations.

@ashmaroli ashmaroli added memory-optimization ⚡ Reduced memory usage for the work done micro-optimization Matters only if it is a very large site ¯\_(ツ)_/¯ labels Nov 5, 2020
@ashmaroli ashmaroli changed the title Memoize destination of pages and documents Memoize destination of pages, documents and staticfiles Nov 5, 2020
Copy link
Member

@DirtyF DirtyF left a comment

Choose a reason for hiding this comment

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

The test suite does not show a significant gain. 🤷

@ashmaroli
Copy link
Member Author

does not show a significant gain

Hence the label, micro-optimization 😉
@jekyllbot: merge +fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix frozen-due-to-age memory-optimization ⚡ Reduced memory usage for the work done micro-optimization Matters only if it is a very large site ¯\_(ツ)_/¯
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants