{"action":"opened","issue":{"url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/308","labels_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/308/comments","events_url":"https://api.github.com/repos/DestinyItemManager/DIM/issues/308/events","html_url":"https://github.com/DestinyItemManager/DIM/issues/308","id":111333959,"number":308,"title":"MovePopup Slowness","user":{"login":"SunburnedGoose","id":984608,"avatar_url":"https://avatars.githubusercontent.com/u/984608?v=3","gravatar_id":"","url":"https://api.github.com/users/SunburnedGoose","html_url":"https://github.com/SunburnedGoose","followers_url":"https://api.github.com/users/SunburnedGoose/followers","following_url":"https://api.github.com/users/SunburnedGoose/following{/other_user}","gists_url":"https://api.github.com/users/SunburnedGoose/gists{/gist_id}","starred_url":"https://api.github.com/users/SunburnedGoose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunburnedGoose/subscriptions","organizations_url":"https://api.github.com/users/SunburnedGoose/orgs","repos_url":"https://api.github.com/users/SunburnedGoose/repos","events_url":"https://api.github.com/users/SunburnedGoose/events{/privacy}","received_events_url":"https://api.github.com/users/SunburnedGoose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T06:34:35Z","updated_at":"2015-10-14T06:34:35Z","closed_at":null,"body":"Looking through the code tonight for the move popup to see why it is taking so long to show the dialog on screen, and to open a new one.\r\n\r\nCouple things...\r\n\r\nWe're building the ordered stores every time we load the page.  That should be done once and updated if settings change, or the stores change.\r\n\r\nhttps://github.com/DestinyItemManager/DIM/blob/dev/app/scripts/move-popup/dimMoveItemProperties.directive.js#L155-L165\r\n\r\nThis code is generating a LOT of garbage collections.  It wants to get the currently equipped item for a type in a store, and then iterate the current item's stats collection and assigns the equipped items stats to a value on the current item.  That's causing digests to occur I believe.  It needs to be refactored asap."}}