{"action":"created","issue":{"url":"https://api.github.com/repos/novoda/download-manager/issues/27","labels_url":"https://api.github.com/repos/novoda/download-manager/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/novoda/download-manager/issues/27/comments","events_url":"https://api.github.com/repos/novoda/download-manager/issues/27/events","html_url":"https://github.com/novoda/download-manager/pull/27","id":85536020,"number":27,"title":"Cache requested bitmap for notifications","user":{"login":"ronocod","id":466546,"avatar_url":"https://avatars.githubusercontent.com/u/466546?v=3","gravatar_id":"","url":"https://api.github.com/users/ronocod","html_url":"https://github.com/ronocod","followers_url":"https://api.github.com/users/ronocod/followers","following_url":"https://api.github.com/users/ronocod/following{/other_user}","gists_url":"https://api.github.com/users/ronocod/gists{/gist_id}","starred_url":"https://api.github.com/users/ronocod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronocod/subscriptions","organizations_url":"https://api.github.com/users/ronocod/orgs","repos_url":"https://api.github.com/users/ronocod/repos","events_url":"https://api.github.com/users/ronocod/events{/privacy}","received_events_url":"https://api.github.com/users/ronocod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-05T13:41:51Z","updated_at":"2015-06-05T14:54:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/novoda/download-manager/pulls/27","html_url":"https://github.com/novoda/download-manager/pull/27","diff_url":"https://github.com/novoda/download-manager/pull/27.diff","patch_url":"https://github.com/novoda/download-manager/pull/27.patch"},"body":"Currently the image for a download notification is fetched from the network every time the notification is updated. This causes memory usage to grow rapidly which causes GC to happen more often. It also wastes network bandwidth.\r\n\r\nThe retriever will now cache the latest Bitmap and return it without a network request when the same URL is requested.\r\n\r\n## Memory Allocations\r\n\r\nBefore | After\r\n---|---\r\n![screen shot 2015-06-05 at 14 59 05](https://cloud.githubusercontent.com/assets/466546/8007411/8b523fe4-0b93-11e5-9b08-057639d698c4.png)|![screen shot 2015-06-05 at 14 59 13](https://cloud.githubusercontent.com/assets/466546/8007408/86551c0a-0b93-11e5-97ae-a92410e06b91.png)\r\n"},"comment":{"url":"https://api.github.com/repos/novoda/download-manager/issues/comments/109319143","html_url":"https://github.com/novoda/download-manager/pull/27#issuecomment-109319143","issue_url":"https://api.github.com/repos/novoda/download-manager/issues/27","id":109319143,"user":{"login":"ronocod","id":466546,"avatar_url":"https://avatars.githubusercontent.com/u/466546?v=3","gravatar_id":"","url":"https://api.github.com/users/ronocod","html_url":"https://github.com/ronocod","followers_url":"https://api.github.com/users/ronocod/followers","following_url":"https://api.github.com/users/ronocod/following{/other_user}","gists_url":"https://api.github.com/users/ronocod/gists{/gist_id}","starred_url":"https://api.github.com/users/ronocod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronocod/subscriptions","organizations_url":"https://api.github.com/users/ronocod/orgs","repos_url":"https://api.github.com/users/ronocod/repos","events_url":"https://api.github.com/users/ronocod/events{/privacy}","received_events_url":"https://api.github.com/users/ronocod/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T14:54:52Z","updated_at":"2015-06-05T14:54:52Z","body":":ship:?\r\n![](http://img.photobucket.com/albums/v65/artemis1701/PleaseCouldYouHelpMe.gif)"}}