Title: Not optimal number of diffs · Issue #3 · derbyjs/arraydiff · GitHub
Open Graph Title: Not optimal number of diffs · Issue #3 · derbyjs/arraydiff
X Title: Not optimal number of diffs · Issue #3 · derbyjs/arraydiff
Description: I suppose this happens because array has repeating elements. Here is test case: https://github.com/vmakhaev/arraydiff-testcase As you see, I remove one item and expect only one RemoveDiff, but get: [ RemoveDiff { index: 86, howMany: 1 },...
Open Graph Description: I suppose this happens because array has repeating elements. Here is test case: https://github.com/vmakhaev/arraydiff-testcase As you see, I remove one item and expect only one RemoveDiff, but get:...
X Description: I suppose this happens because array has repeating elements. Here is test case: https://github.com/vmakhaev/arraydiff-testcase As you see, I remove one item and expect only one RemoveDiff, but get:...
Opengraph URL: https://github.com/derbyjs/arraydiff/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Not optimal number of diffs","articleBody":"I suppose this happens because array has repeating elements.\nHere is test case: https://github.com/vmakhaev/arraydiff-testcase\nAs you see, I remove one item and expect only one `RemoveDiff`, but get:\n\n```\n[ RemoveDiff { index: 86, howMany: 1 },\n MoveDiff { from: 21, to: 20, howMany: 5 },\n MoveDiff { from: 27, to: 26, howMany: 6 },\n MoveDiff { from: 34, to: 33, howMany: 6 },\n MoveDiff { from: 41, to: 40, howMany: 6 },\n MoveDiff { from: 48, to: 47, howMany: 5 },\n MoveDiff { from: 54, to: 53, howMany: 6 },\n MoveDiff { from: 61, to: 60, howMany: 7 },\n MoveDiff { from: 70, to: 68, howMany: 8 },\n MoveDiff { from: 79, to: 68, howMany: 1 },\n MoveDiff { from: 80, to: 79, howMany: 6 } ]\n```\n","author":{"url":"https://github.com/vmakhaev","@type":"Person","name":"vmakhaev"},"datePublished":"2016-03-06T17:39:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3/arraydiff/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a812f0fe-67ec-1b6d-f4b2-469ace49b7a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A434:140E58:8D7EED5:B6AACFB:6975F76C |
| html-safe-nonce | 5d591a320d42b7bcc976388a1a16fb8118772f60666b70fe1dd794d92fe7ba6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDM0OjE0MEU1ODo4RDdFRUQ1OkI2QUFDRkI6Njk3NUY3NkMiLCJ2aXNpdG9yX2lkIjoiMjUwMzk5MjU4NTYwOTQxMDQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6180e3e4ddbfa7d200fe32a73bcfb441c67c57e8bab3d409a1b6adf2e41e4da6 |
| hovercard-subject-tag | issue:138814913 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/derbyjs/arraydiff/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c83d4f4ae9736670a49f83e033d717062d6ab6e4c21c733d05340e4c5ed074a/derbyjs/arraydiff/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c83d4f4ae9736670a49f83e033d717062d6ab6e4c21c733d05340e4c5ed074a/derbyjs/arraydiff/issues/3 |
| og:image:alt | I suppose this happens because array has repeating elements. Here is test case: https://github.com/vmakhaev/arraydiff-testcase As you see, I remove one item and expect only one RemoveDiff, but get:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vmakhaev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6 |
| turbo-cache-control | no-preview |
| go-import | github.com/derbyjs/arraydiff git https://github.com/derbyjs/arraydiff.git |
| octolytics-dimension-user_id | 2942220 |
| octolytics-dimension-user_login | derbyjs |
| octolytics-dimension-repository_id | 10254304 |
| octolytics-dimension-repository_nwo | derbyjs/arraydiff |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10254304 |
| octolytics-dimension-repository_network_root_nwo | derbyjs/arraydiff |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fcca2b8ef702b5f7f91427a6e920fa44446fe312 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width