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

Skip render if the output is unchanged #45

Merged
merged 3 commits into from
Feb 2, 2020

Conversation

kj800x
Copy link
Contributor

@kj800x kj800x commented Jan 21, 2020

Resolves #44

Stores previous output and compares the current value to the previous value when rendering. If the values are the same, we bail out early to reduce the work that the consumer of the output stream does.

index.js Outdated Show resolved Hide resolved
@sindresorhus sindresorhus changed the title Skip render if output unchanged Skip render if the output is unchanged Feb 2, 2020
@sindresorhus sindresorhus merged commit a488df3 into sindresorhus:master Feb 2, 2020
@kj800x kj800x deleted the kj-44 branch July 19, 2020 03:56
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.

Skip render if output is unchanged
2 participants