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

Allow batched diffing of slices with a custom comparer #210

Merged
merged 1 commit into from
Jun 10, 2020

Commits on Jun 10, 2020

  1. Allow batched diffing of slices with a custom comparer

    For correctness, cmp checks applicability of the options for every
    element in a slice. For large []byte, this is a significant performance
    detriment. The workaround is to specify Comparer(bytes.Equal).
    However, we would still like to have the batched diffing if the
    slices are different. Specialize for this situation.
    dsnet committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    0b6dce6 View commit details
    Browse the repository at this point in the history