{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/17604","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/17604/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/17604/comments","events_url":"https://api.github.com/repos/golang/go/issues/17604/events","html_url":"https://github.com/golang/go/issues/17604","id":185359045,"number":17604,"title":"atomic.CompareAndSwap slower than mutexes","user":{"login":"claygod","id":8122120,"avatar_url":"https://avatars.githubusercontent.com/u/8122120?v=3","gravatar_id":"","url":"https://api.github.com/users/claygod","html_url":"https://github.com/claygod","followers_url":"https://api.github.com/users/claygod/followers","following_url":"https://api.github.com/users/claygod/following{/other_user}","gists_url":"https://api.github.com/users/claygod/gists{/gist_id}","starred_url":"https://api.github.com/users/claygod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claygod/subscriptions","organizations_url":"https://api.github.com/users/claygod/orgs","repos_url":"https://api.github.com/users/claygod/repos","events_url":"https://api.github.com/users/claygod/events{/privacy}","received_events_url":"https://api.github.com/users/claygod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-26T10:49:42Z","updated_at":"2016-10-26T15:15:21Z","closed_at":null,"body":"To \"lock / free\", I tried to use \"_atomic.CompareAndSwap_\" and \"_mutex_\". To my surprise, in a non-parallel use of \"_mutex_\" I was faster. Explain why \"_mutex_\" faster, because he uses \"_atomic.CompareAndSwap_\"?\r\n\r\n--------------------\r\n- What version of Go are you using (`go version`)? 1.7\r\n- What operating system and processor architecture are you using (`go env`)? Win7/i3"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/256378982","html_url":"https://github.com/golang/go/issues/17604#issuecomment-256378982","issue_url":"https://api.github.com/repos/golang/go/issues/17604","id":256378982,"user":{"login":"claygod","id":8122120,"avatar_url":"https://avatars.githubusercontent.com/u/8122120?v=3","gravatar_id":"","url":"https://api.github.com/users/claygod","html_url":"https://github.com/claygod","followers_url":"https://api.github.com/users/claygod/followers","following_url":"https://api.github.com/users/claygod/following{/other_user}","gists_url":"https://api.github.com/users/claygod/gists{/gist_id}","starred_url":"https://api.github.com/users/claygod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claygod/subscriptions","organizations_url":"https://api.github.com/users/claygod/orgs","repos_url":"https://api.github.com/users/claygod/repos","events_url":"https://api.github.com/users/claygod/events{/privacy}","received_events_url":"https://api.github.com/users/claygod/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T15:15:21Z","updated_at":"2016-10-26T15:15:21Z","body":"dAdAbird, many thanks, It turns out the matter in a row\r\n```Go\r\n(q Queue)\r\n```\r\nenough to change\r\n```Go\r\n(q *Queue)\r\n```\r\nbut I did not expect such an effect!"}}
{"actor":{"display_login":"claygod"}}