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

Provide invokables for common drop query keys #8165

Merged
merged 1 commit into from May 10, 2020

Conversation

ashmaroli
Copy link
Member

Summary

While playing around with profilers, it noticed that memory allocations are greater when a Drop queried with a key doesn't have a method defined for the key and is therefore forwarded to query fallback_data.

So, this PR provides commonly queried keys as methods defined for the drops.

@ashmaroli
Copy link
Member Author

Memory Profile

--- master https://travis-ci.org/github/jekyll/jekyll/jobs/684126964
+++ PR     https://travis-ci.org/github/jekyll/jekyll/jobs/684634377

- Total allocated: 298.04 MB (3049942 objects)
- Total retained:  19.40 MB (108644 objects)
+ Total allocated: 296.24 MB (3004828 objects)
+ Total retained:  19.40 MB (108643 objects)

@ashmaroli ashmaroli marked this pull request as ready for review May 8, 2020 12:32
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.

Nice

@ashmaroli
Copy link
Member Author

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 88e3078 into jekyll:master May 10, 2020
@jekyllbot jekyllbot added the fix label May 10, 2020
jekyllbot added a commit that referenced this pull request May 10, 2020
@ashmaroli ashmaroli deleted the common-drop-queries branch May 10, 2020 14:39
@jekyll jekyll locked and limited conversation to collaborators May 10, 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