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

Cache contents of included file read into memory #8104

Closed
wants to merge 3 commits into from

Conversation

ashmaroli
Copy link
Member

@ashmaroli ashmaroli commented Apr 9, 2020

Summary

Cache contents of included file read into memory.

This could result in some nice improvements in memory usage in sites:

  • that use {% include_relative %} to include a Markdown page — no need to re-read the Markdown file more than twice (Once by a Reader subclass and once more by IncludeRelativeTag).
  • that use {% include %} to include large includes in multiple contexts.

@ashmaroli ashmaroli changed the title Demo that inclusions may be read multiple times Cache contents of included file read into memory Apr 9, 2020
@ashmaroli
Copy link
Member Author

Superseded by #8158

@ashmaroli ashmaroli closed this May 25, 2020
@ashmaroli ashmaroli deleted the cache-include-contents branch May 25, 2020 17:15
@jekyll jekyll locked and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants