{"action":"opened","number":434,"pull_request":{"url":"https://api.github.com/repos/XENON1T/pax/pulls/434","id":89627953,"html_url":"https://github.com/XENON1T/pax/pull/434","diff_url":"https://github.com/XENON1T/pax/pull/434.diff","patch_url":"https://github.com/XENON1T/pax/pull/434.patch","issue_url":"https://api.github.com/repos/XENON1T/pax/issues/434","number":434,"state":"open","locked":false,"title":"Small speed improvements for the event builder","user":{"login":"JelleAalbers","id":4354311,"avatar_url":"https://avatars.githubusercontent.com/u/4354311?v=3","gravatar_id":"","url":"https://api.github.com/users/JelleAalbers","html_url":"https://github.com/JelleAalbers","followers_url":"https://api.github.com/users/JelleAalbers/followers","following_url":"https://api.github.com/users/JelleAalbers/following{/other_user}","gists_url":"https://api.github.com/users/JelleAalbers/gists{/gist_id}","starred_url":"https://api.github.com/users/JelleAalbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelleAalbers/subscriptions","organizations_url":"https://api.github.com/users/JelleAalbers/orgs","repos_url":"https://api.github.com/users/JelleAalbers/repos","events_url":"https://api.github.com/users/JelleAalbers/events{/privacy}","received_events_url":"https://api.github.com/users/JelleAalbers/received_events","type":"User","site_admin":false},"body":"This slightly improves the speed of the event builder by:\r\n\r\n* Dropping the continuous type checking on the pulse class (StrictModel->Model). A few other places in the code had to be updated to provide nice vanilla python types (and not numpy types that would break BSON encoding).\r\n* Add a `do_it_fast=True` option for Model.__init__ that bypasses some of the extra features we use for conveniently serializing entire events. This is only activated when initializing pulses in the event builder.\r\n* Increase the default pymongo batch size, avoiding extra round trips to the database.\r\n\r\nThis also includes a command line option for starting event building in the middle of a run. You get warning and a confirmation prompt if you use this outside secret mode (as for stopping in the middle of a run).\r\n\r\nI tested it on a dataset with a bit of Rn220 in it; this improves the speed from 50events/74sec, i.e. a 24% higher speed. We could improve it more by changing the compression from pickle to snappy, but this would result in a marginal gain while increasing the file size by 50%. ","created_at":"2016-10-17T13:54:22Z","updated_at":"2016-10-17T13:54:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d178d7c7b966b2b6f63aa1a2d66547eb0bc0a674","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/XENON1T/pax/pulls/434/commits","review_comments_url":"https://api.github.com/repos/XENON1T/pax/pulls/434/comments","review_comment_url":"https://api.github.com/repos/XENON1T/pax/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XENON1T/pax/issues/434/comments","statuses_url":"https://api.github.com/repos/XENON1T/pax/statuses/2d42368cc4feca1d2f002ef2440d99cc77c4bbc9","head":{"label":"XENON1T:ebspeed","ref":"ebspeed","sha":"2d42368cc4feca1d2f002ef2440d99cc77c4bbc9","user":{"login":"XENON1T","id":6840852,"avatar_url":"https://avatars.githubusercontent.com/u/6840852?v=3","gravatar_id":"","url":"https://api.github.com/users/XENON1T","html_url":"https://github.com/XENON1T","followers_url":"https://api.github.com/users/XENON1T/followers","following_url":"https://api.github.com/users/XENON1T/following{/other_user}","gists_url":"https://api.github.com/users/XENON1T/gists{/gist_id}","starred_url":"https://api.github.com/users/XENON1T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XENON1T/subscriptions","organizations_url":"https://api.github.com/users/XENON1T/orgs","repos_url":"https://api.github.com/users/XENON1T/repos","events_url":"https://api.github.com/users/XENON1T/events{/privacy}","received_events_url":"https://api.github.com/users/XENON1T/received_events","type":"Organization","site_admin":false},"repo":{"id":21694081,"name":"pax","full_name":"XENON1T/pax","owner":{"login":"XENON1T","id":6840852,"avatar_url":"https://avatars.githubusercontent.com/u/6840852?v=3","gravatar_id":"","url":"https://api.github.com/users/XENON1T","html_url":"https://github.com/XENON1T","followers_url":"https://api.github.com/users/XENON1T/followers","following_url":"https://api.github.com/users/XENON1T/following{/other_user}","gists_url":"https://api.github.com/users/XENON1T/gists{/gist_id}","starred_url":"https://api.github.com/users/XENON1T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XENON1T/subscriptions","organizations_url":"https://api.github.com/users/XENON1T/orgs","repos_url":"https://api.github.com/users/XENON1T/repos","events_url":"https://api.github.com/users/XENON1T/events{/privacy}","received_events_url":"https://api.github.com/users/XENON1T/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/XENON1T/pax","description":"Raw data processor (raw -> processed data)","fork":false,"url":"https://api.github.com/repos/XENON1T/pax","forks_url":"https://api.github.com/repos/XENON1T/pax/forks","keys_url":"https://api.github.com/repos/XENON1T/pax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XENON1T/pax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XENON1T/pax/teams","hooks_url":"https://api.github.com/repos/XENON1T/pax/hooks","issue_events_url":"https://api.github.com/repos/XENON1T/pax/issues/events{/number}","events_url":"https://api.github.com/repos/XENON1T/pax/events","assignees_url":"https://api.github.com/repos/XENON1T/pax/assignees{/user}","branches_url":"https://api.github.com/repos/XENON1T/pax/branches{/branch}","tags_url":"https://api.github.com/repos/XENON1T/pax/tags","blobs_url":"https://api.github.com/repos/XENON1T/pax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XENON1T/pax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XENON1T/pax/git/refs{/sha}","trees_url":"https://api.github.com/repos/XENON1T/pax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XENON1T/pax/statuses/{sha}","languages_url":"https://api.github.com/repos/XENON1T/pax/languages","stargazers_url":"https://api.github.com/repos/XENON1T/pax/stargazers","contributors_url":"https://api.github.com/repos/XENON1T/pax/contributors","subscribers_url":"https://api.github.com/repos/XENON1T/pax/subscribers","subscription_url":"https://api.github.com/repos/XENON1T/pax/subscription","commits_url":"https://api.github.com/repos/XENON1T/pax/commits{/sha}","git_commits_url":"https://api.github.com/repos/XENON1T/pax/git/commits{/sha}","comments_url":"https://api.github.com/repos/XENON1T/pax/comments{/number}","issue_comment_url":"https://api.github.com/repos/XENON1T/pax/issues/comments{/number}","contents_url":"https://api.github.com/repos/XENON1T/pax/contents/{+path}","compare_url":"https://api.github.com/repos/XENON1T/pax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XENON1T/pax/merges","archive_url":"https://api.github.com/repos/XENON1T/pax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XENON1T/pax/downloads","issues_url":"https://api.github.com/repos/XENON1T/pax/issues{/number}","pulls_url":"https://api.github.com/repos/XENON1T/pax/pulls{/number}","milestones_url":"https://api.github.com/repos/XENON1T/pax/milestones{/number}","notifications_url":"https://api.github.com/repos/XENON1T/pax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XENON1T/pax/labels{/name}","releases_url":"https://api.github.com/repos/XENON1T/pax/releases{/id}","deployments_url":"https://api.github.com/repos/XENON1T/pax/deployments","created_at":"2014-07-10T12:54:14Z","updated_at":"2016-10-07T15:17:04Z","pushed_at":"2016-10-17T13:54:22Z","git_url":"git://github.com/XENON1T/pax.git","ssh_url":"git@github.com:XENON1T/pax.git","clone_url":"https://github.com/XENON1T/pax.git","svn_url":"https://github.com/XENON1T/pax","homepage":"","size":524771,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":20,"forks":2,"open_issues":20,"watchers":7,"default_branch":"master"}},"base":{"label":"XENON1T:master","ref":"master","sha":"4a182e965efca2a1225dfb596d5a463611f03b4c","user":{"login":"XENON1T","id":6840852,"avatar_url":"https://avatars.githubusercontent.com/u/6840852?v=3","gravatar_id":"","url":"https://api.github.com/users/XENON1T","html_url":"https://github.com/XENON1T","followers_url":"https://api.github.com/users/XENON1T/followers","following_url":"https://api.github.com/users/XENON1T/following{/other_user}","gists_url":"https://api.github.com/users/XENON1T/gists{/gist_id}","starred_url":"https://api.github.com/users/XENON1T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XENON1T/subscriptions","organizations_url":"https://api.github.com/users/XENON1T/orgs","repos_url":"https://api.github.com/users/XENON1T/repos","events_url":"https://api.github.com/users/XENON1T/events{/privacy}","received_events_url":"https://api.github.com/users/XENON1T/received_events","type":"Organization","site_admin":false},"repo":{"id":21694081,"name":"pax","full_name":"XENON1T/pax","owner":{"login":"XENON1T","id":6840852,"avatar_url":"https://avatars.githubusercontent.com/u/6840852?v=3","gravatar_id":"","url":"https://api.github.com/users/XENON1T","html_url":"https://github.com/XENON1T","followers_url":"https://api.github.com/users/XENON1T/followers","following_url":"https://api.github.com/users/XENON1T/following{/other_user}","gists_url":"https://api.github.com/users/XENON1T/gists{/gist_id}","starred_url":"https://api.github.com/users/XENON1T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XENON1T/subscriptions","organizations_url":"https://api.github.com/users/XENON1T/orgs","repos_url":"https://api.github.com/users/XENON1T/repos","events_url":"https://api.github.com/users/XENON1T/events{/privacy}","received_events_url":"https://api.github.com/users/XENON1T/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/XENON1T/pax","description":"Raw data processor (raw -> processed data)","fork":false,"url":"https://api.github.com/repos/XENON1T/pax","forks_url":"https://api.github.com/repos/XENON1T/pax/forks","keys_url":"https://api.github.com/repos/XENON1T/pax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XENON1T/pax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XENON1T/pax/teams","hooks_url":"https://api.github.com/repos/XENON1T/pax/hooks","issue_events_url":"https://api.github.com/repos/XENON1T/pax/issues/events{/number}","events_url":"https://api.github.com/repos/XENON1T/pax/events","assignees_url":"https://api.github.com/repos/XENON1T/pax/assignees{/user}","branches_url":"https://api.github.com/repos/XENON1T/pax/branches{/branch}","tags_url":"https://api.github.com/repos/XENON1T/pax/tags","blobs_url":"https://api.github.com/repos/XENON1T/pax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XENON1T/pax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XENON1T/pax/git/refs{/sha}","trees_url":"https://api.github.com/repos/XENON1T/pax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XENON1T/pax/statuses/{sha}","languages_url":"https://api.github.com/repos/XENON1T/pax/languages","stargazers_url":"https://api.github.com/repos/XENON1T/pax/stargazers","contributors_url":"https://api.github.com/repos/XENON1T/pax/contributors","subscribers_url":"https://api.github.com/repos/XENON1T/pax/subscribers","subscription_url":"https://api.github.com/repos/XENON1T/pax/subscription","commits_url":"https://api.github.com/repos/XENON1T/pax/commits{/sha}","git_commits_url":"https://api.github.com/repos/XENON1T/pax/git/commits{/sha}","comments_url":"https://api.github.com/repos/XENON1T/pax/comments{/number}","issue_comment_url":"https://api.github.com/repos/XENON1T/pax/issues/comments{/number}","contents_url":"https://api.github.com/repos/XENON1T/pax/contents/{+path}","compare_url":"https://api.github.com/repos/XENON1T/pax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XENON1T/pax/merges","archive_url":"https://api.github.com/repos/XENON1T/pax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XENON1T/pax/downloads","issues_url":"https://api.github.com/repos/XENON1T/pax/issues{/number}","pulls_url":"https://api.github.com/repos/XENON1T/pax/pulls{/number}","milestones_url":"https://api.github.com/repos/XENON1T/pax/milestones{/number}","notifications_url":"https://api.github.com/repos/XENON1T/pax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XENON1T/pax/labels{/name}","releases_url":"https://api.github.com/repos/XENON1T/pax/releases{/id}","deployments_url":"https://api.github.com/repos/XENON1T/pax/deployments","created_at":"2014-07-10T12:54:14Z","updated_at":"2016-10-07T15:17:04Z","pushed_at":"2016-10-17T13:54:22Z","git_url":"git://github.com/XENON1T/pax.git","ssh_url":"git@github.com:XENON1T/pax.git","clone_url":"https://github.com/XENON1T/pax.git","svn_url":"https://github.com/XENON1T/pax","homepage":"","size":524771,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":20,"forks":2,"open_issues":20,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/XENON1T/pax/pulls/434"},"html":{"href":"https://github.com/XENON1T/pax/pull/434"},"issue":{"href":"https://api.github.com/repos/XENON1T/pax/issues/434"},"comments":{"href":"https://api.github.com/repos/XENON1T/pax/issues/434/comments"},"review_comments":{"href":"https://api.github.com/repos/XENON1T/pax/pulls/434/comments"},"review_comment":{"href":"https://api.github.com/repos/XENON1T/pax/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XENON1T/pax/pulls/434/commits"},"statuses":{"href":"https://api.github.com/repos/XENON1T/pax/statuses/2d42368cc4feca1d2f002ef2440d99cc77c4bbc9"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":77,"deletions":44,"changed_files":9}}
{"actor":{"display_login":"JelleAalbers"}}