{"action":"created","issue":{"url":"https://api.github.com/repos/libra/libra/issues/937","repository_url":"https://api.github.com/repos/libra/libra","labels_url":"https://api.github.com/repos/libra/libra/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/libra/libra/issues/937/comments","events_url":"https://api.github.com/repos/libra/libra/issues/937/events","html_url":"https://github.com/libra/libra/pull/937","id":493519566,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE3NDg1MjI2","number":937,"title":"[state-sync] Optimize weight distribution calculation for peer scoring","user":{"login":"sunmilee","id":10732175,"node_id":"MDQ6VXNlcjEwNzMyMTc1","avatar_url":"https://avatars2.githubusercontent.com/u/10732175?v=4","gravatar_id":"","url":"https://api.github.com/users/sunmilee","html_url":"https://github.com/sunmilee","followers_url":"https://api.github.com/users/sunmilee/followers","following_url":"https://api.github.com/users/sunmilee/following{/other_user}","gists_url":"https://api.github.com/users/sunmilee/gists{/gist_id}","starred_url":"https://api.github.com/users/sunmilee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunmilee/subscriptions","organizations_url":"https://api.github.com/users/sunmilee/orgs","repos_url":"https://api.github.com/users/sunmilee/repos","events_url":"https://api.github.com/users/sunmilee/events{/privacy}","received_events_url":"https://api.github.com/users/sunmilee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-13T21:14:32Z","updated_at":"2019-09-16T21:36:28Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/libra/libra/pulls/937","html_url":"https://github.com/libra/libra/pull/937","diff_url":"https://github.com/libra/libra/pull/937.diff","patch_url":"https://github.com/libra/libra/pull/937.patch"},"body":"## Motivation\r\n\r\nWeightedIndex library can be O(log(n)) if the weighted index vector does not need to be updated when choosing a peer. This diff adds logic to only update the weighted index vector when score changes, and store that vector to be used when picking peer, rather than calculating the distribution dynamically when picking.\r\n\r\n## Test Plan\r\n\r\nunit test \r\n"},"comment":{"url":"https://api.github.com/repos/libra/libra/issues/comments/531968002","html_url":"https://github.com/libra/libra/pull/937#issuecomment-531968002","issue_url":"https://api.github.com/repos/libra/libra/issues/937","id":531968002,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTk2ODAwMg==","user":{"login":"bors-libra","id":53831230,"node_id":"MDQ6VXNlcjUzODMxMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/53831230?v=4","gravatar_id":"","url":"https://api.github.com/users/bors-libra","html_url":"https://github.com/bors-libra","followers_url":"https://api.github.com/users/bors-libra/followers","following_url":"https://api.github.com/users/bors-libra/following{/other_user}","gists_url":"https://api.github.com/users/bors-libra/gists{/gist_id}","starred_url":"https://api.github.com/users/bors-libra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors-libra/subscriptions","organizations_url":"https://api.github.com/users/bors-libra/orgs","repos_url":"https://api.github.com/users/bors-libra/repos","events_url":"https://api.github.com/users/bors-libra/events{/privacy}","received_events_url":"https://api.github.com/users/bors-libra/received_events","type":"User","site_admin":false},"created_at":"2019-09-16T21:36:28Z","updated_at":"2019-09-16T21:36:28Z","author_association":"COLLABORATOR","body":":umbrella: The latest upstream changes (presumably c7dc41716c0f97070b8f0dc92125a6863cd1e88a) made this pull request unmergeable. Please resolve the merge conflicts."}}
{"actor":{"display_login":"bors-libra"}}