Skip to content

Don't provide a diff notify callback unless necessary #1283

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

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

niik
Copy link
Contributor

@niik niik commented Mar 19, 2016

We only seem to care about what ends up being collected in the MatchedPathsAggregator when we've got some file paths to match agains and either an OnUnmatchedPath delegate or instructions to throw
on unmatched paths.

If none of those condition are true we shouldn't be sending a callback function pointer at all and by not doing so we avoid one marshalled invocation per delta in the diff.

We only seem to care about what ends up being collected in the
`MatchedPathsAggregator` when we've got some file paths to match agains
and either an `OnUnmatchedPath` delegate or instructions to throw
on unmatched paths.

If none of those condition are true we shouldn't be sending a callback
function pointer at all and by not doing so we avoid one marshalled invocation
per delta in the diff.
@carlosmn carlosmn merged commit f3c998c into master Mar 23, 2016
@bording bording deleted the no-diff-notify-unless-necessary branch April 21, 2019 02:01
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