{"action":"created","issue":{"url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/55","repository_url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner","labels_url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/55/comments","events_url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/55/events","html_url":"https://github.com/ideacreation/react-native-barcodescanner/pull/55","id":177181164,"number":55,"title":"Implement AsyncTask for heavy computation to unblock UI thread","user":{"login":"AlexSchwabauer","id":5955962,"avatar_url":"https://avatars.githubusercontent.com/u/5955962?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexSchwabauer","html_url":"https://github.com/AlexSchwabauer","followers_url":"https://api.github.com/users/AlexSchwabauer/followers","following_url":"https://api.github.com/users/AlexSchwabauer/following{/other_user}","gists_url":"https://api.github.com/users/AlexSchwabauer/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexSchwabauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexSchwabauer/subscriptions","organizations_url":"https://api.github.com/users/AlexSchwabauer/orgs","repos_url":"https://api.github.com/users/AlexSchwabauer/repos","events_url":"https://api.github.com/users/AlexSchwabauer/events{/privacy}","received_events_url":"https://api.github.com/users/AlexSchwabauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-15T13:45:41Z","updated_at":"2016-09-27T06:39:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/pulls/55","html_url":"https://github.com/ideacreation/react-native-barcodescanner/pull/55","diff_url":"https://github.com/ideacreation/react-native-barcodescanner/pull/55.diff","patch_url":"https://github.com/ideacreation/react-native-barcodescanner/pull/55.patch"},"body":"I found that the bottleneck of this module is the barcode detection logic which is done on each frame.\r\nUnfortunately, this computation is quite expensive and blocks the UI and leads to bad performance.\r\nThis pull request wraps the logic of BarcodeScannerView.onPreviewFrame in an AsyncTask to free the UI thread."},"comment":{"url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/comments/249779179","html_url":"https://github.com/ideacreation/react-native-barcodescanner/pull/55#issuecomment-249779179","issue_url":"https://api.github.com/repos/ideacreation/react-native-barcodescanner/issues/55","id":249779179,"user":{"login":"c0b41","id":2834954,"avatar_url":"https://avatars.githubusercontent.com/u/2834954?v=3","gravatar_id":"","url":"https://api.github.com/users/c0b41","html_url":"https://github.com/c0b41","followers_url":"https://api.github.com/users/c0b41/followers","following_url":"https://api.github.com/users/c0b41/following{/other_user}","gists_url":"https://api.github.com/users/c0b41/gists{/gist_id}","starred_url":"https://api.github.com/users/c0b41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0b41/subscriptions","organizations_url":"https://api.github.com/users/c0b41/orgs","repos_url":"https://api.github.com/users/c0b41/repos","events_url":"https://api.github.com/users/c0b41/events{/privacy}","received_events_url":"https://api.github.com/users/c0b41/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T06:39:11Z","updated_at":"2016-09-27T06:39:11Z","body":"👍 "}}
{"actor":{"display_login":"c0b41"}}