{"action":"created","issue":{"url":"https://api.github.com/repos/platanus/angular-restmod/issues/236","labels_url":"https://api.github.com/repos/platanus/angular-restmod/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/platanus/angular-restmod/issues/236/comments","events_url":"https://api.github.com/repos/platanus/angular-restmod/issues/236/events","html_url":"https://github.com/platanus/angular-restmod/issues/236","id":54768325,"number":236,"title":"Performance of $scope on large datasets","user":{"login":"facultymatt","id":1406258,"avatar_url":"https://avatars.githubusercontent.com/u/1406258?v=3","gravatar_id":"","url":"https://api.github.com/users/facultymatt","html_url":"https://github.com/facultymatt","followers_url":"https://api.github.com/users/facultymatt/followers","following_url":"https://api.github.com/users/facultymatt/following{/other_user}","gists_url":"https://api.github.com/users/facultymatt/gists{/gist_id}","starred_url":"https://api.github.com/users/facultymatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facultymatt/subscriptions","organizations_url":"https://api.github.com/users/facultymatt/orgs","repos_url":"https://api.github.com/users/facultymatt/repos","events_url":"https://api.github.com/users/facultymatt/events{/privacy}","received_events_url":"https://api.github.com/users/facultymatt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-19T14:11:01Z","updated_at":"2015-01-21T23:04:27Z","closed_at":null,"body":"I'm doing some heap debugging in Chrome... I noticed one of the largest retained constructors was a restmod collection of a few hundred objects. \r\n\r\nSpecifically, the retained size is in the $scope property. \r\n\r\n![scope_1](https://cloud.githubusercontent.com/assets/1406258/5801563/87e2d002-9fba-11e4-8df6-13135924aad5.png)\r\n\r\nI wanted to start a discussion around this... \r\n\r\n- Is `$scope` needed? If so, what is its purpose? \r\n- Is `$scope` being properly garbage collected within the restmod library? \r\n- Could I be using restmod collections in a way that prevents garbage collection? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/platanus/angular-restmod/issues/comments/70940350","html_url":"https://github.com/platanus/angular-restmod/issues/236#issuecomment-70940350","issue_url":"https://api.github.com/repos/platanus/angular-restmod/issues/236","id":70940350,"user":{"login":"facultymatt","id":1406258,"avatar_url":"https://avatars.githubusercontent.com/u/1406258?v=3","gravatar_id":"","url":"https://api.github.com/users/facultymatt","html_url":"https://github.com/facultymatt","followers_url":"https://api.github.com/users/facultymatt/followers","following_url":"https://api.github.com/users/facultymatt/following{/other_user}","gists_url":"https://api.github.com/users/facultymatt/gists{/gist_id}","starred_url":"https://api.github.com/users/facultymatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facultymatt/subscriptions","organizations_url":"https://api.github.com/users/facultymatt/orgs","repos_url":"https://api.github.com/users/facultymatt/repos","events_url":"https://api.github.com/users/facultymatt/events{/privacy}","received_events_url":"https://api.github.com/users/facultymatt/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T23:04:27Z","updated_at":"2015-01-21T23:04:27Z","body":"But in this example, if you set `test = null;` then then the referenced collections can be garbage collected, correct? \r\n\r\n"}}