{"action":"opened","number":177,"pull_request":{"url":"https://api.github.com/repos/epgsql/epgsql/pulls/177","id":233564271,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNTY0Mjcx","html_url":"https://github.com/epgsql/epgsql/pull/177","diff_url":"https://github.com/epgsql/epgsql/pull/177.diff","patch_url":"https://github.com/epgsql/epgsql/pull/177.patch","issue_url":"https://api.github.com/repos/epgsql/epgsql/issues/177","number":177,"state":"open","locked":false,"title":"Jl/microoptimizations","user":{"login":"jlouis","id":5663,"node_id":"MDQ6VXNlcjU2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5663?v=4","gravatar_id":"","url":"https://api.github.com/users/jlouis","html_url":"https://github.com/jlouis","followers_url":"https://api.github.com/users/jlouis/followers","following_url":"https://api.github.com/users/jlouis/following{/other_user}","gists_url":"https://api.github.com/users/jlouis/gists{/gist_id}","starred_url":"https://api.github.com/users/jlouis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlouis/subscriptions","organizations_url":"https://api.github.com/users/jlouis/orgs","repos_url":"https://api.github.com/users/jlouis/repos","events_url":"https://api.github.com/users/jlouis/events{/privacy}","received_events_url":"https://api.github.com/users/jlouis/received_events","type":"User","site_admin":false},"body":"Two small micro-optimizations. Do feel free to take whatever you like, or none of them.\r\n\r\nIn our tests, this makes `epgsql` outrun the producer loop in `postgresql` for our databases, so we decode faster than it can deliver data (since it has to seek the SSD/NVMe at some point and while fast, it is not without cost).\r\n\r\nHowever, I have not done a lot of benchmarking, and gone by intuition more than actual measurement, so keep that in mind. In particular, I don't know how much the multi-string decoder is part of the main loop, but I also think this code reads a bit easier, so there's that.\r\n\r\n","created_at":"2018-11-26T13:50:15Z","updated_at":"2018-11-26T13:50:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/epgsql/epgsql/pulls/177/commits","review_comments_url":"https://api.github.com/repos/epgsql/epgsql/pulls/177/comments","review_comment_url":"https://api.github.com/repos/epgsql/epgsql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/epgsql/epgsql/issues/177/comments","statuses_url":"https://api.github.com/repos/epgsql/epgsql/statuses/9899ac2fbb6959d6997989fc18f73bf08937d3b7","head":{"label":"jlouis:jl/microoptimizations","ref":"jl/microoptimizations","sha":"9899ac2fbb6959d6997989fc18f73bf08937d3b7","user":{"login":"jlouis","id":5663,"node_id":"MDQ6VXNlcjU2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5663?v=4","gravatar_id":"","url":"https://api.github.com/users/jlouis","html_url":"https://github.com/jlouis","followers_url":"https://api.github.com/users/jlouis/followers","following_url":"https://api.github.com/users/jlouis/following{/other_user}","gists_url":"https://api.github.com/users/jlouis/gists{/gist_id}","starred_url":"https://api.github.com/users/jlouis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlouis/subscriptions","organizations_url":"https://api.github.com/users/jlouis/orgs","repos_url":"https://api.github.com/users/jlouis/repos","events_url":"https://api.github.com/users/jlouis/events{/privacy}","received_events_url":"https://api.github.com/users/jlouis/received_events","type":"User","site_admin":false},"repo":{"id":159175674,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkxNzU2NzQ=","name":"epgsql","full_name":"jlouis/epgsql","private":false,"owner":{"login":"jlouis","id":5663,"node_id":"MDQ6VXNlcjU2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5663?v=4","gravatar_id":"","url":"https://api.github.com/users/jlouis","html_url":"https://github.com/jlouis","followers_url":"https://api.github.com/users/jlouis/followers","following_url":"https://api.github.com/users/jlouis/following{/other_user}","gists_url":"https://api.github.com/users/jlouis/gists{/gist_id}","starred_url":"https://api.github.com/users/jlouis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlouis/subscriptions","organizations_url":"https://api.github.com/users/jlouis/orgs","repos_url":"https://api.github.com/users/jlouis/repos","events_url":"https://api.github.com/users/jlouis/events{/privacy}","received_events_url":"https://api.github.com/users/jlouis/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jlouis/epgsql","description":"Erlang PostgreSQL client library.","fork":true,"url":"https://api.github.com/repos/jlouis/epgsql","forks_url":"https://api.github.com/repos/jlouis/epgsql/forks","keys_url":"https://api.github.com/repos/jlouis/epgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlouis/epgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlouis/epgsql/teams","hooks_url":"https://api.github.com/repos/jlouis/epgsql/hooks","issue_events_url":"https://api.github.com/repos/jlouis/epgsql/issues/events{/number}","events_url":"https://api.github.com/repos/jlouis/epgsql/events","assignees_url":"https://api.github.com/repos/jlouis/epgsql/assignees{/user}","branches_url":"https://api.github.com/repos/jlouis/epgsql/branches{/branch}","tags_url":"https://api.github.com/repos/jlouis/epgsql/tags","blobs_url":"https://api.github.com/repos/jlouis/epgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlouis/epgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlouis/epgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlouis/epgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlouis/epgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/jlouis/epgsql/languages","stargazers_url":"https://api.github.com/repos/jlouis/epgsql/stargazers","contributors_url":"https://api.github.com/repos/jlouis/epgsql/contributors","subscribers_url":"https://api.github.com/repos/jlouis/epgsql/subscribers","subscription_url":"https://api.github.com/repos/jlouis/epgsql/subscription","commits_url":"https://api.github.com/repos/jlouis/epgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlouis/epgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlouis/epgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlouis/epgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlouis/epgsql/contents/{+path}","compare_url":"https://api.github.com/repos/jlouis/epgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlouis/epgsql/merges","archive_url":"https://api.github.com/repos/jlouis/epgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlouis/epgsql/downloads","issues_url":"https://api.github.com/repos/jlouis/epgsql/issues{/number}","pulls_url":"https://api.github.com/repos/jlouis/epgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/jlouis/epgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/jlouis/epgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlouis/epgsql/labels{/name}","releases_url":"https://api.github.com/repos/jlouis/epgsql/releases{/id}","deployments_url":"https://api.github.com/repos/jlouis/epgsql/deployments","created_at":"2018-11-26T13:40:40Z","updated_at":"2018-11-26T13:40:42Z","pushed_at":"2018-11-26T13:47:17Z","git_url":"git://github.com/jlouis/epgsql.git","ssh_url":"git@github.com:jlouis/epgsql.git","clone_url":"https://github.com/jlouis/epgsql.git","svn_url":"https://github.com/jlouis/epgsql","homepage":"","size":806,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"epgsql:devel","ref":"devel","sha":"b3138f76759750ab5e6202766cb39acd88c8ff54","user":{"login":"epgsql","id":6673333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NzMzMzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6673333?v=4","gravatar_id":"","url":"https://api.github.com/users/epgsql","html_url":"https://github.com/epgsql","followers_url":"https://api.github.com/users/epgsql/followers","following_url":"https://api.github.com/users/epgsql/following{/other_user}","gists_url":"https://api.github.com/users/epgsql/gists{/gist_id}","starred_url":"https://api.github.com/users/epgsql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epgsql/subscriptions","organizations_url":"https://api.github.com/users/epgsql/orgs","repos_url":"https://api.github.com/users/epgsql/repos","events_url":"https://api.github.com/users/epgsql/events{/privacy}","received_events_url":"https://api.github.com/users/epgsql/received_events","type":"Organization","site_admin":false},"repo":{"id":16806661,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgwNjY2MQ==","name":"epgsql","full_name":"epgsql/epgsql","private":false,"owner":{"login":"epgsql","id":6673333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NzMzMzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6673333?v=4","gravatar_id":"","url":"https://api.github.com/users/epgsql","html_url":"https://github.com/epgsql","followers_url":"https://api.github.com/users/epgsql/followers","following_url":"https://api.github.com/users/epgsql/following{/other_user}","gists_url":"https://api.github.com/users/epgsql/gists{/gist_id}","starred_url":"https://api.github.com/users/epgsql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epgsql/subscriptions","organizations_url":"https://api.github.com/users/epgsql/orgs","repos_url":"https://api.github.com/users/epgsql/repos","events_url":"https://api.github.com/users/epgsql/events{/privacy}","received_events_url":"https://api.github.com/users/epgsql/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/epgsql/epgsql","description":"Erlang PostgreSQL client library.","fork":false,"url":"https://api.github.com/repos/epgsql/epgsql","forks_url":"https://api.github.com/repos/epgsql/epgsql/forks","keys_url":"https://api.github.com/repos/epgsql/epgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/epgsql/epgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/epgsql/epgsql/teams","hooks_url":"https://api.github.com/repos/epgsql/epgsql/hooks","issue_events_url":"https://api.github.com/repos/epgsql/epgsql/issues/events{/number}","events_url":"https://api.github.com/repos/epgsql/epgsql/events","assignees_url":"https://api.github.com/repos/epgsql/epgsql/assignees{/user}","branches_url":"https://api.github.com/repos/epgsql/epgsql/branches{/branch}","tags_url":"https://api.github.com/repos/epgsql/epgsql/tags","blobs_url":"https://api.github.com/repos/epgsql/epgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/epgsql/epgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/epgsql/epgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/epgsql/epgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/epgsql/epgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/epgsql/epgsql/languages","stargazers_url":"https://api.github.com/repos/epgsql/epgsql/stargazers","contributors_url":"https://api.github.com/repos/epgsql/epgsql/contributors","subscribers_url":"https://api.github.com/repos/epgsql/epgsql/subscribers","subscription_url":"https://api.github.com/repos/epgsql/epgsql/subscription","commits_url":"https://api.github.com/repos/epgsql/epgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/epgsql/epgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/epgsql/epgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/epgsql/epgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/epgsql/epgsql/contents/{+path}","compare_url":"https://api.github.com/repos/epgsql/epgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/epgsql/epgsql/merges","archive_url":"https://api.github.com/repos/epgsql/epgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/epgsql/epgsql/downloads","issues_url":"https://api.github.com/repos/epgsql/epgsql/issues{/number}","pulls_url":"https://api.github.com/repos/epgsql/epgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/epgsql/epgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/epgsql/epgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/epgsql/epgsql/labels{/name}","releases_url":"https://api.github.com/repos/epgsql/epgsql/releases{/id}","deployments_url":"https://api.github.com/repos/epgsql/epgsql/deployments","created_at":"2014-02-13T15:14:58Z","updated_at":"2018-11-22T12:03:20Z","pushed_at":"2018-10-18T16:40:08Z","git_url":"git://github.com/epgsql/epgsql.git","ssh_url":"git@github.com:epgsql/epgsql.git","clone_url":"https://github.com/epgsql/epgsql.git","svn_url":"https://github.com/epgsql/epgsql","homepage":"","size":806,"stargazers_count":257,"watchers_count":257,"language":"Erlang","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":102,"open_issues":17,"watchers":257,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/epgsql/epgsql/pulls/177"},"html":{"href":"https://github.com/epgsql/epgsql/pull/177"},"issue":{"href":"https://api.github.com/repos/epgsql/epgsql/issues/177"},"comments":{"href":"https://api.github.com/repos/epgsql/epgsql/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/epgsql/epgsql/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/epgsql/epgsql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/epgsql/epgsql/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/epgsql/epgsql/statuses/9899ac2fbb6959d6997989fc18f73bf08937d3b7"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":18,"deletions":11,"changed_files":1}}
{"actor":{"display_login":"jlouis"}}