{"action":"opened","number":47,"pull_request":{"url":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47","id":52690022,"html_url":"https://github.com/deluge-torrent/deluge/pull/47","diff_url":"https://github.com/deluge-torrent/deluge/pull/47.diff","patch_url":"https://github.com/deluge-torrent/deluge/pull/47.patch","issue_url":"https://api.github.com/repos/deluge-torrent/deluge/issues/47","number":47,"state":"open","locked":false,"title":"Defer save state function to separate thread","user":{"login":"bendikro","id":84580,"avatar_url":"https://avatars.githubusercontent.com/u/84580?v=3","gravatar_id":"","url":"https://api.github.com/users/bendikro","html_url":"https://github.com/bendikro","followers_url":"https://api.github.com/users/bendikro/followers","following_url":"https://api.github.com/users/bendikro/following{/other_user}","gists_url":"https://api.github.com/users/bendikro/gists{/gist_id}","starred_url":"https://api.github.com/users/bendikro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendikro/subscriptions","organizations_url":"https://api.github.com/users/bendikro/orgs","repos_url":"https://api.github.com/users/bendikro/repos","events_url":"https://api.github.com/users/bendikro/events{/privacy}","received_events_url":"https://api.github.com/users/bendikro/received_events","type":"User","site_admin":false},"body":"With large amounts of torrents, saving the state file becomes\r\na performance bottleneck, mainly due to the required processing\r\nin pickle.dump. When run in the main thread, the server will\r\nhang and be unresponsive for a significant time.\r\n\r\nSolve this issue by running the save state job in a separate thread.\r\n\r\nNote: Two extra unrelated commits are included :-)","created_at":"2015-12-04T16:28:11Z","updated_at":"2015-12-04T16:28:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47/commits","review_comments_url":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47/comments","review_comment_url":"https://api.github.com/repos/deluge-torrent/deluge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deluge-torrent/deluge/issues/47/comments","statuses_url":"https://api.github.com/repos/deluge-torrent/deluge/statuses/725e944d6c769a835002fc40284874459dac1cc2","head":{"label":"bendikro:develop-save-state","ref":"develop-save-state","sha":"725e944d6c769a835002fc40284874459dac1cc2","user":{"login":"bendikro","id":84580,"avatar_url":"https://avatars.githubusercontent.com/u/84580?v=3","gravatar_id":"","url":"https://api.github.com/users/bendikro","html_url":"https://github.com/bendikro","followers_url":"https://api.github.com/users/bendikro/followers","following_url":"https://api.github.com/users/bendikro/following{/other_user}","gists_url":"https://api.github.com/users/bendikro/gists{/gist_id}","starred_url":"https://api.github.com/users/bendikro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendikro/subscriptions","organizations_url":"https://api.github.com/users/bendikro/orgs","repos_url":"https://api.github.com/users/bendikro/repos","events_url":"https://api.github.com/users/bendikro/events{/privacy}","received_events_url":"https://api.github.com/users/bendikro/received_events","type":"User","site_admin":false},"repo":{"id":17491274,"name":"deluge","full_name":"bendikro/deluge","owner":{"login":"bendikro","id":84580,"avatar_url":"https://avatars.githubusercontent.com/u/84580?v=3","gravatar_id":"","url":"https://api.github.com/users/bendikro","html_url":"https://github.com/bendikro","followers_url":"https://api.github.com/users/bendikro/followers","following_url":"https://api.github.com/users/bendikro/following{/other_user}","gists_url":"https://api.github.com/users/bendikro/gists{/gist_id}","starred_url":"https://api.github.com/users/bendikro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendikro/subscriptions","organizations_url":"https://api.github.com/users/bendikro/orgs","repos_url":"https://api.github.com/users/bendikro/repos","events_url":"https://api.github.com/users/bendikro/events{/privacy}","received_events_url":"https://api.github.com/users/bendikro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bendikro/deluge","description":"Mirror of official deluge repo at http://git.deluge-torrent.org (one way sync)","fork":true,"url":"https://api.github.com/repos/bendikro/deluge","forks_url":"https://api.github.com/repos/bendikro/deluge/forks","keys_url":"https://api.github.com/repos/bendikro/deluge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bendikro/deluge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bendikro/deluge/teams","hooks_url":"https://api.github.com/repos/bendikro/deluge/hooks","issue_events_url":"https://api.github.com/repos/bendikro/deluge/issues/events{/number}","events_url":"https://api.github.com/repos/bendikro/deluge/events","assignees_url":"https://api.github.com/repos/bendikro/deluge/assignees{/user}","branches_url":"https://api.github.com/repos/bendikro/deluge/branches{/branch}","tags_url":"https://api.github.com/repos/bendikro/deluge/tags","blobs_url":"https://api.github.com/repos/bendikro/deluge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bendikro/deluge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bendikro/deluge/git/refs{/sha}","trees_url":"https://api.github.com/repos/bendikro/deluge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bendikro/deluge/statuses/{sha}","languages_url":"https://api.github.com/repos/bendikro/deluge/languages","stargazers_url":"https://api.github.com/repos/bendikro/deluge/stargazers","contributors_url":"https://api.github.com/repos/bendikro/deluge/contributors","subscribers_url":"https://api.github.com/repos/bendikro/deluge/subscribers","subscription_url":"https://api.github.com/repos/bendikro/deluge/subscription","commits_url":"https://api.github.com/repos/bendikro/deluge/commits{/sha}","git_commits_url":"https://api.github.com/repos/bendikro/deluge/git/commits{/sha}","comments_url":"https://api.github.com/repos/bendikro/deluge/comments{/number}","issue_comment_url":"https://api.github.com/repos/bendikro/deluge/issues/comments{/number}","contents_url":"https://api.github.com/repos/bendikro/deluge/contents/{+path}","compare_url":"https://api.github.com/repos/bendikro/deluge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bendikro/deluge/merges","archive_url":"https://api.github.com/repos/bendikro/deluge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bendikro/deluge/downloads","issues_url":"https://api.github.com/repos/bendikro/deluge/issues{/number}","pulls_url":"https://api.github.com/repos/bendikro/deluge/pulls{/number}","milestones_url":"https://api.github.com/repos/bendikro/deluge/milestones{/number}","notifications_url":"https://api.github.com/repos/bendikro/deluge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bendikro/deluge/labels{/name}","releases_url":"https://api.github.com/repos/bendikro/deluge/releases{/id}","created_at":"2014-03-06T20:18:55Z","updated_at":"2015-03-26T11:42:44Z","pushed_at":"2015-12-04T16:24:35Z","git_url":"git://github.com/bendikro/deluge.git","ssh_url":"git@github.com:bendikro/deluge.git","clone_url":"https://github.com/bendikro/deluge.git","svn_url":"https://github.com/bendikro/deluge","homepage":"http://deluge-torrent.org","size":61604,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"deluge-torrent:develop","ref":"develop","sha":"eaae568c7cebb2f4a62a8513db7e211d3f1082b8","user":{"login":"deluge-torrent","id":6733935,"avatar_url":"https://avatars.githubusercontent.com/u/6733935?v=3","gravatar_id":"","url":"https://api.github.com/users/deluge-torrent","html_url":"https://github.com/deluge-torrent","followers_url":"https://api.github.com/users/deluge-torrent/followers","following_url":"https://api.github.com/users/deluge-torrent/following{/other_user}","gists_url":"https://api.github.com/users/deluge-torrent/gists{/gist_id}","starred_url":"https://api.github.com/users/deluge-torrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deluge-torrent/subscriptions","organizations_url":"https://api.github.com/users/deluge-torrent/orgs","repos_url":"https://api.github.com/users/deluge-torrent/repos","events_url":"https://api.github.com/users/deluge-torrent/events{/privacy}","received_events_url":"https://api.github.com/users/deluge-torrent/received_events","type":"Organization","site_admin":false},"repo":{"id":17009684,"name":"deluge","full_name":"deluge-torrent/deluge","owner":{"login":"deluge-torrent","id":6733935,"avatar_url":"https://avatars.githubusercontent.com/u/6733935?v=3","gravatar_id":"","url":"https://api.github.com/users/deluge-torrent","html_url":"https://github.com/deluge-torrent","followers_url":"https://api.github.com/users/deluge-torrent/followers","following_url":"https://api.github.com/users/deluge-torrent/following{/other_user}","gists_url":"https://api.github.com/users/deluge-torrent/gists{/gist_id}","starred_url":"https://api.github.com/users/deluge-torrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deluge-torrent/subscriptions","organizations_url":"https://api.github.com/users/deluge-torrent/orgs","repos_url":"https://api.github.com/users/deluge-torrent/repos","events_url":"https://api.github.com/users/deluge-torrent/events{/privacy}","received_events_url":"https://api.github.com/users/deluge-torrent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deluge-torrent/deluge","description":"Mirror of official deluge repo at http://git.deluge-torrent.org (one way sync)","fork":false,"url":"https://api.github.com/repos/deluge-torrent/deluge","forks_url":"https://api.github.com/repos/deluge-torrent/deluge/forks","keys_url":"https://api.github.com/repos/deluge-torrent/deluge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deluge-torrent/deluge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deluge-torrent/deluge/teams","hooks_url":"https://api.github.com/repos/deluge-torrent/deluge/hooks","issue_events_url":"https://api.github.com/repos/deluge-torrent/deluge/issues/events{/number}","events_url":"https://api.github.com/repos/deluge-torrent/deluge/events","assignees_url":"https://api.github.com/repos/deluge-torrent/deluge/assignees{/user}","branches_url":"https://api.github.com/repos/deluge-torrent/deluge/branches{/branch}","tags_url":"https://api.github.com/repos/deluge-torrent/deluge/tags","blobs_url":"https://api.github.com/repos/deluge-torrent/deluge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deluge-torrent/deluge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deluge-torrent/deluge/git/refs{/sha}","trees_url":"https://api.github.com/repos/deluge-torrent/deluge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deluge-torrent/deluge/statuses/{sha}","languages_url":"https://api.github.com/repos/deluge-torrent/deluge/languages","stargazers_url":"https://api.github.com/repos/deluge-torrent/deluge/stargazers","contributors_url":"https://api.github.com/repos/deluge-torrent/deluge/contributors","subscribers_url":"https://api.github.com/repos/deluge-torrent/deluge/subscribers","subscription_url":"https://api.github.com/repos/deluge-torrent/deluge/subscription","commits_url":"https://api.github.com/repos/deluge-torrent/deluge/commits{/sha}","git_commits_url":"https://api.github.com/repos/deluge-torrent/deluge/git/commits{/sha}","comments_url":"https://api.github.com/repos/deluge-torrent/deluge/comments{/number}","issue_comment_url":"https://api.github.com/repos/deluge-torrent/deluge/issues/comments{/number}","contents_url":"https://api.github.com/repos/deluge-torrent/deluge/contents/{+path}","compare_url":"https://api.github.com/repos/deluge-torrent/deluge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deluge-torrent/deluge/merges","archive_url":"https://api.github.com/repos/deluge-torrent/deluge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deluge-torrent/deluge/downloads","issues_url":"https://api.github.com/repos/deluge-torrent/deluge/issues{/number}","pulls_url":"https://api.github.com/repos/deluge-torrent/deluge/pulls{/number}","milestones_url":"https://api.github.com/repos/deluge-torrent/deluge/milestones{/number}","notifications_url":"https://api.github.com/repos/deluge-torrent/deluge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deluge-torrent/deluge/labels{/name}","releases_url":"https://api.github.com/repos/deluge-torrent/deluge/releases{/id}","created_at":"2014-02-20T05:04:35Z","updated_at":"2015-11-27T20:35:34Z","pushed_at":"2015-12-04T15:54:52Z","git_url":"git://github.com/deluge-torrent/deluge.git","ssh_url":"git@github.com:deluge-torrent/deluge.git","clone_url":"https://github.com/deluge-torrent/deluge.git","svn_url":"https://github.com/deluge-torrent/deluge","homepage":"http://deluge-torrent.org","size":60700,"stargazers_count":82,"watchers_count":82,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":4,"forks":50,"open_issues":4,"watchers":82,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47"},"html":{"href":"https://github.com/deluge-torrent/deluge/pull/47"},"issue":{"href":"https://api.github.com/repos/deluge-torrent/deluge/issues/47"},"comments":{"href":"https://api.github.com/repos/deluge-torrent/deluge/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/deluge-torrent/deluge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deluge-torrent/deluge/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/deluge-torrent/deluge/statuses/725e944d6c769a835002fc40284874459dac1cc2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":78,"deletions":48,"changed_files":3}}