{"action":"closed","issue":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/1244","labels_url":"https://api.github.com/repos/rs/SDWebImage/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/rs/SDWebImage/issues/1244/comments","events_url":"https://api.github.com/repos/rs/SDWebImage/issues/1244/events","html_url":"https://github.com/rs/SDWebImage/issues/1244","id":99184621,"number":1244,"title":"disscuss about decompress image after download","user":{"login":"luoyibu","id":3121486,"avatar_url":"https://avatars.githubusercontent.com/u/3121486?v=3","gravatar_id":"","url":"https://api.github.com/users/luoyibu","html_url":"https://github.com/luoyibu","followers_url":"https://api.github.com/users/luoyibu/followers","following_url":"https://api.github.com/users/luoyibu/following{/other_user}","gists_url":"https://api.github.com/users/luoyibu/gists{/gist_id}","starred_url":"https://api.github.com/users/luoyibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoyibu/subscriptions","organizations_url":"https://api.github.com/users/luoyibu/orgs","repos_url":"https://api.github.com/users/luoyibu/repos","events_url":"https://api.github.com/users/luoyibu/events{/privacy}","received_events_url":"https://api.github.com/users/luoyibu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-05T11:35:53Z","updated_at":"2015-09-17T11:57:21Z","closed_at":"2015-09-17T11:57:21Z","body":"It is not a issue, I just have some test about how \"decompress image\" will affect with the performance, and then the result is confused. \r\n\r\nI test with 2 code:\r\nA: I just call initWithContentOfFile: at background thread, and then setImage in the main thread.\r\nB: I use SDWebImage to test the fps after the image was all downloaded.\r\n\r\nThe fps was almost the same at instrument, so I doubt the effect of decompressing image.\r\n\r\nThen I test the time consuming of \"initWithContentOfFile\" and \"drawImage\" with 2 images, the one was undecompress, the other was decompressed(I call decodedImageWithImage function and save to file).\r\nThe result show that with different images, the \"drawImage\" consume the same time, but the \"initWithContentFile\" has a different time consuming.\r\n\r\nIs it mean that the \"decompress image\" is occurred at \"initWithContentOfFile\", not the time we call \"setImage\" at main thread?\r\nAnd, is it mean that we have no need to decompress image after download while we always call the \"initWithContentOfFile\" function at a background thread?\r\n\r\nThis confused me very much, I need your advice.\r\n\r\n \r\n\r\n"}}