{"action":"opened","number":415,"pull_request":{"url":"https://api.github.com/repos/blevesearch/bleve/pulls/415","id":83513624,"html_url":"https://github.com/blevesearch/bleve/pull/415","diff_url":"https://github.com/blevesearch/bleve/pull/415.diff","patch_url":"https://github.com/blevesearch/bleve/pull/415.patch","issue_url":"https://api.github.com/repos/blevesearch/bleve/issues/415","number":415,"state":"open","locked":false,"title":"cap preallocation by the collector to reasonable value","user":{"login":"mschoch","id":298143,"avatar_url":"https://avatars.githubusercontent.com/u/298143?v=3","gravatar_id":"","url":"https://api.github.com/users/mschoch","html_url":"https://github.com/mschoch","followers_url":"https://api.github.com/users/mschoch/followers","following_url":"https://api.github.com/users/mschoch/following{/other_user}","gists_url":"https://api.github.com/users/mschoch/gists{/gist_id}","starred_url":"https://api.github.com/users/mschoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschoch/subscriptions","organizations_url":"https://api.github.com/users/mschoch/orgs","repos_url":"https://api.github.com/users/mschoch/repos","events_url":"https://api.github.com/users/mschoch/events{/privacy}","received_events_url":"https://api.github.com/users/mschoch/received_events","type":"User","site_admin":false},"body":"the collector has optimizations to avoid allocation and reslicing\r\nduring the common case of searching for top hits\r\n\r\nhowever, in some cases users request an a very large number of\r\nsearch hits to be returned (attempting to get them all)  this\r\ncaused unnecessary allocation of ram.\r\n\r\nto address this we introduce a new constant PreAllocSizeSkipCap\r\nit defaults the value of 1000.  if your search+skip is less than\r\nthis constant, you get the optimized behavior.  if your\r\nsearch+skip is greater than this, we cap the preallcations to\r\nthis lower value.  additional space is acquired on an as needed\r\nbasis by growing the DocumentMatchPool and reslicing the\r\ncollector backing slice\r\n\r\napplications can change the value of PreAllocSizeSkipCap to suit\r\ntheir own needs\r\n\r\nfixes #408","created_at":"2016-08-31T19:26:01Z","updated_at":"2016-08-31T19:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/blevesearch/bleve/pulls/415/commits","review_comments_url":"https://api.github.com/repos/blevesearch/bleve/pulls/415/comments","review_comment_url":"https://api.github.com/repos/blevesearch/bleve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blevesearch/bleve/issues/415/comments","statuses_url":"https://api.github.com/repos/blevesearch/bleve/statuses/60efecc8e9ac15eadb6a815d0a3f3162667ad15f","head":{"label":"mschoch:fixbug408","ref":"fixbug408","sha":"60efecc8e9ac15eadb6a815d0a3f3162667ad15f","user":{"login":"mschoch","id":298143,"avatar_url":"https://avatars.githubusercontent.com/u/298143?v=3","gravatar_id":"","url":"https://api.github.com/users/mschoch","html_url":"https://github.com/mschoch","followers_url":"https://api.github.com/users/mschoch/followers","following_url":"https://api.github.com/users/mschoch/following{/other_user}","gists_url":"https://api.github.com/users/mschoch/gists{/gist_id}","starred_url":"https://api.github.com/users/mschoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschoch/subscriptions","organizations_url":"https://api.github.com/users/mschoch/orgs","repos_url":"https://api.github.com/users/mschoch/repos","events_url":"https://api.github.com/users/mschoch/events{/privacy}","received_events_url":"https://api.github.com/users/mschoch/received_events","type":"User","site_admin":false},"repo":{"id":52998915,"name":"bleve","full_name":"mschoch/bleve","owner":{"login":"mschoch","id":298143,"avatar_url":"https://avatars.githubusercontent.com/u/298143?v=3","gravatar_id":"","url":"https://api.github.com/users/mschoch","html_url":"https://github.com/mschoch","followers_url":"https://api.github.com/users/mschoch/followers","following_url":"https://api.github.com/users/mschoch/following{/other_user}","gists_url":"https://api.github.com/users/mschoch/gists{/gist_id}","starred_url":"https://api.github.com/users/mschoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschoch/subscriptions","organizations_url":"https://api.github.com/users/mschoch/orgs","repos_url":"https://api.github.com/users/mschoch/repos","events_url":"https://api.github.com/users/mschoch/events{/privacy}","received_events_url":"https://api.github.com/users/mschoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mschoch/bleve","description":"A modern text indexing library for go","fork":true,"url":"https://api.github.com/repos/mschoch/bleve","forks_url":"https://api.github.com/repos/mschoch/bleve/forks","keys_url":"https://api.github.com/repos/mschoch/bleve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mschoch/bleve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mschoch/bleve/teams","hooks_url":"https://api.github.com/repos/mschoch/bleve/hooks","issue_events_url":"https://api.github.com/repos/mschoch/bleve/issues/events{/number}","events_url":"https://api.github.com/repos/mschoch/bleve/events","assignees_url":"https://api.github.com/repos/mschoch/bleve/assignees{/user}","branches_url":"https://api.github.com/repos/mschoch/bleve/branches{/branch}","tags_url":"https://api.github.com/repos/mschoch/bleve/tags","blobs_url":"https://api.github.com/repos/mschoch/bleve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mschoch/bleve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mschoch/bleve/git/refs{/sha}","trees_url":"https://api.github.com/repos/mschoch/bleve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mschoch/bleve/statuses/{sha}","languages_url":"https://api.github.com/repos/mschoch/bleve/languages","stargazers_url":"https://api.github.com/repos/mschoch/bleve/stargazers","contributors_url":"https://api.github.com/repos/mschoch/bleve/contributors","subscribers_url":"https://api.github.com/repos/mschoch/bleve/subscribers","subscription_url":"https://api.github.com/repos/mschoch/bleve/subscription","commits_url":"https://api.github.com/repos/mschoch/bleve/commits{/sha}","git_commits_url":"https://api.github.com/repos/mschoch/bleve/git/commits{/sha}","comments_url":"https://api.github.com/repos/mschoch/bleve/comments{/number}","issue_comment_url":"https://api.github.com/repos/mschoch/bleve/issues/comments{/number}","contents_url":"https://api.github.com/repos/mschoch/bleve/contents/{+path}","compare_url":"https://api.github.com/repos/mschoch/bleve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mschoch/bleve/merges","archive_url":"https://api.github.com/repos/mschoch/bleve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mschoch/bleve/downloads","issues_url":"https://api.github.com/repos/mschoch/bleve/issues{/number}","pulls_url":"https://api.github.com/repos/mschoch/bleve/pulls{/number}","milestones_url":"https://api.github.com/repos/mschoch/bleve/milestones{/number}","notifications_url":"https://api.github.com/repos/mschoch/bleve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mschoch/bleve/labels{/name}","releases_url":"https://api.github.com/repos/mschoch/bleve/releases{/id}","deployments_url":"https://api.github.com/repos/mschoch/bleve/deployments","created_at":"2016-03-02T21:48:56Z","updated_at":"2016-03-02T21:48:59Z","pushed_at":"2016-08-31T19:25:45Z","git_url":"git://github.com/mschoch/bleve.git","ssh_url":"git@github.com:mschoch/bleve.git","clone_url":"https://github.com/mschoch/bleve.git","svn_url":"https://github.com/mschoch/bleve","homepage":null,"size":6447,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"blevesearch:master","ref":"master","sha":"a771e344ae318c68155df6e3f12be45e6991f3bc","user":{"login":"blevesearch","id":8562608,"avatar_url":"https://avatars.githubusercontent.com/u/8562608?v=3","gravatar_id":"","url":"https://api.github.com/users/blevesearch","html_url":"https://github.com/blevesearch","followers_url":"https://api.github.com/users/blevesearch/followers","following_url":"https://api.github.com/users/blevesearch/following{/other_user}","gists_url":"https://api.github.com/users/blevesearch/gists{/gist_id}","starred_url":"https://api.github.com/users/blevesearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blevesearch/subscriptions","organizations_url":"https://api.github.com/users/blevesearch/orgs","repos_url":"https://api.github.com/users/blevesearch/repos","events_url":"https://api.github.com/users/blevesearch/events{/privacy}","received_events_url":"https://api.github.com/users/blevesearch/received_events","type":"Organization","site_admin":false},"repo":{"id":18893367,"name":"bleve","full_name":"blevesearch/bleve","owner":{"login":"blevesearch","id":8562608,"avatar_url":"https://avatars.githubusercontent.com/u/8562608?v=3","gravatar_id":"","url":"https://api.github.com/users/blevesearch","html_url":"https://github.com/blevesearch","followers_url":"https://api.github.com/users/blevesearch/followers","following_url":"https://api.github.com/users/blevesearch/following{/other_user}","gists_url":"https://api.github.com/users/blevesearch/gists{/gist_id}","starred_url":"https://api.github.com/users/blevesearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blevesearch/subscriptions","organizations_url":"https://api.github.com/users/blevesearch/orgs","repos_url":"https://api.github.com/users/blevesearch/repos","events_url":"https://api.github.com/users/blevesearch/events{/privacy}","received_events_url":"https://api.github.com/users/blevesearch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blevesearch/bleve","description":"A modern text indexing library for go","fork":false,"url":"https://api.github.com/repos/blevesearch/bleve","forks_url":"https://api.github.com/repos/blevesearch/bleve/forks","keys_url":"https://api.github.com/repos/blevesearch/bleve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blevesearch/bleve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blevesearch/bleve/teams","hooks_url":"https://api.github.com/repos/blevesearch/bleve/hooks","issue_events_url":"https://api.github.com/repos/blevesearch/bleve/issues/events{/number}","events_url":"https://api.github.com/repos/blevesearch/bleve/events","assignees_url":"https://api.github.com/repos/blevesearch/bleve/assignees{/user}","branches_url":"https://api.github.com/repos/blevesearch/bleve/branches{/branch}","tags_url":"https://api.github.com/repos/blevesearch/bleve/tags","blobs_url":"https://api.github.com/repos/blevesearch/bleve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blevesearch/bleve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blevesearch/bleve/git/refs{/sha}","trees_url":"https://api.github.com/repos/blevesearch/bleve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blevesearch/bleve/statuses/{sha}","languages_url":"https://api.github.com/repos/blevesearch/bleve/languages","stargazers_url":"https://api.github.com/repos/blevesearch/bleve/stargazers","contributors_url":"https://api.github.com/repos/blevesearch/bleve/contributors","subscribers_url":"https://api.github.com/repos/blevesearch/bleve/subscribers","subscription_url":"https://api.github.com/repos/blevesearch/bleve/subscription","commits_url":"https://api.github.com/repos/blevesearch/bleve/commits{/sha}","git_commits_url":"https://api.github.com/repos/blevesearch/bleve/git/commits{/sha}","comments_url":"https://api.github.com/repos/blevesearch/bleve/comments{/number}","issue_comment_url":"https://api.github.com/repos/blevesearch/bleve/issues/comments{/number}","contents_url":"https://api.github.com/repos/blevesearch/bleve/contents/{+path}","compare_url":"https://api.github.com/repos/blevesearch/bleve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blevesearch/bleve/merges","archive_url":"https://api.github.com/repos/blevesearch/bleve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blevesearch/bleve/downloads","issues_url":"https://api.github.com/repos/blevesearch/bleve/issues{/number}","pulls_url":"https://api.github.com/repos/blevesearch/bleve/pulls{/number}","milestones_url":"https://api.github.com/repos/blevesearch/bleve/milestones{/number}","notifications_url":"https://api.github.com/repos/blevesearch/bleve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blevesearch/bleve/labels{/name}","releases_url":"https://api.github.com/repos/blevesearch/bleve/releases{/id}","deployments_url":"https://api.github.com/repos/blevesearch/bleve/deployments","created_at":"2014-04-17T21:02:18Z","updated_at":"2016-08-31T14:43:24Z","pushed_at":"2016-08-31T17:52:52Z","git_url":"git://github.com/blevesearch/bleve.git","ssh_url":"git@github.com:blevesearch/bleve.git","clone_url":"https://github.com/blevesearch/bleve.git","svn_url":"https://github.com/blevesearch/bleve","homepage":null,"size":6509,"stargazers_count":2752,"watchers_count":2752,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":232,"mirror_url":null,"open_issues_count":71,"forks":232,"open_issues":71,"watchers":2752,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blevesearch/bleve/pulls/415"},"html":{"href":"https://github.com/blevesearch/bleve/pull/415"},"issue":{"href":"https://api.github.com/repos/blevesearch/bleve/issues/415"},"comments":{"href":"https://api.github.com/repos/blevesearch/bleve/issues/415/comments"},"review_comments":{"href":"https://api.github.com/repos/blevesearch/bleve/pulls/415/comments"},"review_comment":{"href":"https://api.github.com/repos/blevesearch/bleve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blevesearch/bleve/pulls/415/commits"},"statuses":{"href":"https://api.github.com/repos/blevesearch/bleve/statuses/60efecc8e9ac15eadb6a815d0a3f3162667ad15f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":87,"deletions":8,"changed_files":2}}
{"actor":{"display_login":"mschoch"}}