{"action":"created","issue":{"url":"https://api.github.com/repos/ripple/rippled/issues/931","labels_url":"https://api.github.com/repos/ripple/rippled/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/ripple/rippled/issues/931/comments","events_url":"https://api.github.com/repos/ripple/rippled/issues/931/events","html_url":"https://github.com/ripple/rippled/pull/931","id":62159783,"number":931,"title":"Peer load tracking and master lock decongestion","user":{"login":"JoelKatz","id":877549,"avatar_url":"https://avatars.githubusercontent.com/u/877549?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelKatz","html_url":"https://github.com/JoelKatz","followers_url":"https://api.github.com/users/JoelKatz/followers","following_url":"https://api.github.com/users/JoelKatz/following{/other_user}","gists_url":"https://api.github.com/users/JoelKatz/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelKatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelKatz/subscriptions","organizations_url":"https://api.github.com/users/JoelKatz/orgs","repos_url":"https://api.github.com/users/JoelKatz/repos","events_url":"https://api.github.com/users/JoelKatz/events{/privacy}","received_events_url":"https://api.github.com/users/JoelKatz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ripple/rippled/labels/Howard","name":"Howard","color":"eeeeee"},{"url":"https://api.github.com/repos/ripple/rippled/labels/Mickey","name":"Mickey","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T17:44:30Z","updated_at":"2015-03-16T21:01:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ripple/rippled/pulls/931","html_url":"https://github.com/ripple/rippled/pull/931","diff_url":"https://github.com/ripple/rippled/pull/931.diff","patch_url":"https://github.com/ripple/rippled/pull/931.patch"},"body":"Changes to accurately track and report peer load and decongest the master lock.\r\n\r\nReviewers needed."},"comment":{"url":"https://api.github.com/repos/ripple/rippled/issues/comments/81936640","html_url":"https://github.com/ripple/rippled/pull/931#issuecomment-81936640","issue_url":"https://api.github.com/repos/ripple/rippled/issues/931","id":81936640,"user":{"login":"HowardHinnant","id":6708789,"avatar_url":"https://avatars.githubusercontent.com/u/6708789?v=3","gravatar_id":"","url":"https://api.github.com/users/HowardHinnant","html_url":"https://github.com/HowardHinnant","followers_url":"https://api.github.com/users/HowardHinnant/followers","following_url":"https://api.github.com/users/HowardHinnant/following{/other_user}","gists_url":"https://api.github.com/users/HowardHinnant/gists{/gist_id}","starred_url":"https://api.github.com/users/HowardHinnant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowardHinnant/subscriptions","organizations_url":"https://api.github.com/users/HowardHinnant/orgs","repos_url":"https://api.github.com/users/HowardHinnant/repos","events_url":"https://api.github.com/users/HowardHinnant/events{/privacy}","received_events_url":"https://api.github.com/users/HowardHinnant/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T21:01:10Z","updated_at":"2015-03-16T21:01:10Z","body":"I stumbled across another inefficiency that is \"in the neighborhood\".  In Application.h the function `masterLock` returns a `std::unique_ptr<std::unique_lock<std::recursive_mutex>>`.  There is no reason to use a `unique_ptr` here.  It is a needless heap allocation/deallocation.  `unique_lock` is just as movable as `unique_ptr`.  This function should return `std::unique_lock<std::recursive_mutex>`, either in this PR, or a separate PR."}}