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

Compute data file's extname just once #511

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

ashmaroli
Copy link
Member

Currently on master, File.extname(id) is called in 3 separate places, each returning the same value but different objects. This PR proposes a minor optimization by moving File.extname(id) into the initializer.

@ashmaroli ashmaroli merged commit 0d6289e into jekyll:master Oct 10, 2019
@ashmaroli ashmaroli deleted the data-file-extname branch October 10, 2019 09:23
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