{"action":"opened","issue":{"url":"https://api.github.com/repos/monix/monix/issues/268","repository_url":"https://api.github.com/repos/monix/monix","labels_url":"https://api.github.com/repos/monix/monix/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/monix/monix/issues/268/comments","events_url":"https://api.github.com/repos/monix/monix/issues/268/events","html_url":"https://github.com/monix/monix/issues/268","id":189376871,"number":268,"title":"The unsubscribe logic PublishSubject is more inneficient than it should","user":{"login":"alexandru","id":11753,"avatar_url":"https://avatars.githubusercontent.com/u/11753?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru","html_url":"https://github.com/alexandru","followers_url":"https://api.github.com/users/alexandru/followers","following_url":"https://api.github.com/users/alexandru/following{/other_user}","gists_url":"https://api.github.com/users/alexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru/subscriptions","organizations_url":"https://api.github.com/users/alexandru/orgs","repos_url":"https://api.github.com/users/alexandru/repos","events_url":"https://api.github.com/users/alexandru/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexandru","id":11753,"avatar_url":"https://avatars.githubusercontent.com/u/11753?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru","html_url":"https://github.com/alexandru","followers_url":"https://api.github.com/users/alexandru/followers","following_url":"https://api.github.com/users/alexandru/following{/other_user}","gists_url":"https://api.github.com/users/alexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru/subscriptions","organizations_url":"https://api.github.com/users/alexandru/orgs","repos_url":"https://api.github.com/users/alexandru/repos","events_url":"https://api.github.com/users/alexandru/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandru","id":11753,"avatar_url":"https://avatars.githubusercontent.com/u/11753?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru","html_url":"https://github.com/alexandru","followers_url":"https://api.github.com/users/alexandru/followers","following_url":"https://api.github.com/users/alexandru/following{/other_user}","gists_url":"https://api.github.com/users/alexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru/subscriptions","organizations_url":"https://api.github.com/users/alexandru/orgs","repos_url":"https://api.github.com/users/alexandru/repos","events_url":"https://api.github.com/users/alexandru/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/monix/monix/milestones/11","html_url":"https://github.com/monix/monix/milestones/2.1.1","labels_url":"https://api.github.com/repos/monix/monix/milestones/11/labels","id":2136469,"number":11,"title":"2.1.1","description":null,"creator":{"login":"alexandru","id":11753,"avatar_url":"https://avatars.githubusercontent.com/u/11753?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru","html_url":"https://github.com/alexandru","followers_url":"https://api.github.com/users/alexandru/followers","following_url":"https://api.github.com/users/alexandru/following{/other_user}","gists_url":"https://api.github.com/users/alexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru/subscriptions","organizations_url":"https://api.github.com/users/alexandru/orgs","repos_url":"https://api.github.com/users/alexandru/repos","events_url":"https://api.github.com/users/alexandru/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-11-15T12:17:22Z","updated_at":"2016-11-15T12:17:28Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-11-15T12:17:28Z","updated_at":"2016-11-15T12:17:28Z","closed_at":null,"body":"`PublishSubject` does this:\r\n\r\n```scala\r\nval update = State(subscribers.filterNot(_ == subscriber))\r\n```\r\n\r\nBut `subscribers` is a `Set` so it should do `subscribers - subscriber` and that `filterNot` is inefficient."}}
{"actor":{"display_login":"alexandru"}}