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

template cache #15

Merged
merged 1 commit into from
Jan 16, 2015
Merged

template cache #15

merged 1 commit into from
Jan 16, 2015

Conversation

kellyredding
Copy link
Member

This adds logic to the source to enable template caching. This
shows a modest improvement in the benchmarks relative to not caching.

To accomplish this, I had to update the source api to take options
rather than default locals directly. This also updates the the
README to document the cache option as well as the default locals
option.

@jcredding ready for review.

@@ -65,6 +65,24 @@ Output:

## Notes

### Cache Templates

By default the source doesn't care template files. You can configure it to cache templates using the `:cache` option:
Copy link
Member

Choose a reason for hiding this comment

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

@kellyredding - "cache" instead of "care"

This adds logic to the source to enable template caching.  This
shows a modest improvement in the benchmarks relative to not caching.

To accomplish this, I had to update the source api to take options
rather than default locals directly.  This also updates the the
README to document the cache option as well as the default locals
option.
@jcredding
Copy link
Member

@kellyredding - Looks good 💥

kellyredding added a commit that referenced this pull request Jan 16, 2015
@kellyredding kellyredding merged commit c686fb2 into master Jan 16, 2015
@kellyredding kellyredding deleted the kr-cache branch January 16, 2015 13:50
kellyredding added a commit that referenced this pull request Jan 19, 2015
* template cache #15

/cc @jcredding
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