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

[7.x] approvals: use go-cmp instead #2969

Merged
merged 2 commits into from
Nov 27, 2019
Merged

Conversation

axw
Copy link
Member

@axw axw commented Nov 27, 2019

Backports the following commits to 7.x:

gojsondiff is unusably slow when comparing
large maps with many differences. I triggered
this in the profile integration tests, when
the `profile.id` field changed in every single
document. Use go-cmp instead, which is much faster.
@axw axw added the backport label Nov 27, 2019
@codecov-io
Copy link

codecov-io commented Nov 27, 2019

Codecov Report

Merging #2969 into 7.x will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              7.x    #2969   +/-   ##
=======================================
  Coverage   78.74%   78.74%           
=======================================
  Files          84       84           
  Lines        4380     4380           
=======================================
  Hits         3449     3449           
  Misses        931      931

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1025f5e...a573489. Read the comment docs.

@axw axw merged commit e7d688c into elastic:7.x Nov 27, 2019
@axw axw deleted the backport/7.x/pr-2968 branch November 27, 2019 09:53
bmorelli25 pushed a commit to bmorelli25/apm-server that referenced this pull request Nov 27, 2019
* approvals: use go-cmp instead

gojsondiff is unusably slow when comparing
large maps with many differences. I triggered
this in the profile integration tests, when
the `profile.id` field changed in every single
document. Use go-cmp instead, which is much faster.

* vendor: remove gojsondiff and friends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants