{"action":"closed","issue":{"url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1530","repository_url":"https://api.github.com/repos/open-keychain/open-keychain","labels_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1530/labels{/name}","comments_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1530/comments","events_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1530/events","html_url":"https://github.com/open-keychain/open-keychain/issues/1530","id":106101992,"number":1530,"title":"Slow encryption and decryption times in app using OpenKeychain","user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-09-11T21:59:27Z","updated_at":"2016-03-13T14:32:08Z","closed_at":"2016-03-13T14:32:08Z","body":"This is a repost from https://github.com/zeapo/Android-Password-Store/issues/119#issuecomment-139668816\r\n\r\nBasically the problem is that the operations \"finding the key and showing the auth dialog\" and \"decryption\" take both an unbearable amount of time. Somehow I *nearly* resolved this issue by reimporting all my keys, but for other users it doesn't seem that easy.\r\n\r\nMy experience right now (after reimporting):\r\n\r\n* When opening the show-password view of Password Store, it first shows a loading animation for 1-2 secs. During that time the process that takes the most CPU is `org.sufficientlysecure.keychain:remote_api`.\r\n\r\n* \"Authentication required shows within the current Password Store view, under the loading circle, with 1-2 seconds delay. The most-consuming process is `org.sufficientlysecure.keychain`.\r\n\r\n* After 3-4 seconds, the password prompt from OpenKeychain pops up and the CPU activity goes back to normal/idle.\r\n\r\n* **10 seconds** are taken for unlocking the key and decrypting. A lot of CPU activity is spent by the `org.sufficientlysecure.keychain:remote_api`-call (as told by @dirtYICE in the linked issue), but also some activity in `org.sufficientlysecure.keychain` itself.\r\n\r\ncc @wongma7"}}