{"action":"closed","issue":{"url":"https://api.github.com/repos/ReSwift/ReSwift/issues/324","repository_url":"https://api.github.com/repos/ReSwift/ReSwift","labels_url":"https://api.github.com/repos/ReSwift/ReSwift/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/ReSwift/ReSwift/issues/324/comments","events_url":"https://api.github.com/repos/ReSwift/ReSwift/issues/324/events","html_url":"https://github.com/ReSwift/ReSwift/issues/324","id":299322946,"number":324,"title":"Slow subscribe ?","user":{"login":"nferruzzi","id":1319874,"avatar_url":"https://avatars3.githubusercontent.com/u/1319874?v=4","gravatar_id":"","url":"https://api.github.com/users/nferruzzi","html_url":"https://github.com/nferruzzi","followers_url":"https://api.github.com/users/nferruzzi/followers","following_url":"https://api.github.com/users/nferruzzi/following{/other_user}","gists_url":"https://api.github.com/users/nferruzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/nferruzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nferruzzi/subscriptions","organizations_url":"https://api.github.com/users/nferruzzi/orgs","repos_url":"https://api.github.com/users/nferruzzi/repos","events_url":"https://api.github.com/users/nferruzzi/events{/privacy}","received_events_url":"https://api.github.com/users/nferruzzi/received_events","type":"User","site_admin":false},"labels":[{"id":302043379,"url":"https://api.github.com/repos/ReSwift/ReSwift/labels/Needs%20Discussion","name":"Needs Discussion","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-22T11:48:29Z","updated_at":"2018-03-06T18:48:41Z","closed_at":"2018-03-06T18:48:41Z","author_association":"NONE","body":"Hi,\r\n\r\nI've a project with thousands of subscribers, the more I add the slower it becomes to add new ones.\r\nI think the main reason is here\r\n\r\n```\r\n        if let index = subscriptions.index(where: { $0.subscriber === subscriber }) {\r\n            subscriptions.remove(at: index)\r\n        }\r\n```\r\n\r\nunfortunately this is going to be a major issue for my project; would you consider a PR for a different approach like an hashtable or whatever ? \r\n\r\nthanks in advance"}}
{"actor":{"display_login":"mjarvis"}}