{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/27","id":226579179,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NTc5MTc5","html_url":"https://github.com/snipsco/gazetteer-entity-parser/pull/27","diff_url":"https://github.com/snipsco/gazetteer-entity-parser/pull/27.diff","patch_url":"https://github.com/snipsco/gazetteer-entity-parser/pull/27.patch","issue_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/27","number":27,"state":"open","locked":false,"title":"Memory optimization","user":{"login":"adrienball","id":11029979,"node_id":"MDQ6VXNlcjExMDI5OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/11029979?v=4","gravatar_id":"","url":"https://api.github.com/users/adrienball","html_url":"https://github.com/adrienball","followers_url":"https://api.github.com/users/adrienball/followers","following_url":"https://api.github.com/users/adrienball/following{/other_user}","gists_url":"https://api.github.com/users/adrienball/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienball/subscriptions","organizations_url":"https://api.github.com/users/adrienball/orgs","repos_url":"https://api.github.com/users/adrienball/repos","events_url":"https://api.github.com/users/adrienball/events{/privacy}","received_events_url":"https://api.github.com/users/adrienball/received_events","type":"User","site_admin":false},"body":"**Description**\r\nThis PR modifies the data structures used by the `Parser` object in order to improve memory usage. More specifically, the `GazetteerParserSymbolTable` was removed and replaced by two distinct objects:\r\n- a `TokenSymbolTable` which contains the indexing of tokens\r\n- a `ResolvedSymbolTable` which contains the indexing of resolved values\r\n\r\nThese two objects are smaller than the previous `GazetteerParserSymbolTable` as they contain a unidirectional mapping instead of a bi-directional one.\r\n\r\nAs a result, the memory usage of the parser was reduced by a bit more than 50%.\r\n\r\nThis PR also removes the typing of errors and replace them with `failure`'s context. This simplifies greatly the error handling in the crate.","created_at":"2018-10-29T14:23:09Z","updated_at":"2018-10-29T14:23:09Z","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/snipsco/gazetteer-entity-parser/pulls/27/commits","review_comments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/27/comments","review_comment_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/27/comments","statuses_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/statuses/85b94d8e824745328ee0010ec2c6c7caa7326399","head":{"label":"snipsco:task/optimizations","ref":"task/optimizations","sha":"85b94d8e824745328ee0010ec2c6c7caa7326399","user":{"login":"snipsco","id":2564618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjQ2MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2564618?v=4","gravatar_id":"","url":"https://api.github.com/users/snipsco","html_url":"https://github.com/snipsco","followers_url":"https://api.github.com/users/snipsco/followers","following_url":"https://api.github.com/users/snipsco/following{/other_user}","gists_url":"https://api.github.com/users/snipsco/gists{/gist_id}","starred_url":"https://api.github.com/users/snipsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snipsco/subscriptions","organizations_url":"https://api.github.com/users/snipsco/orgs","repos_url":"https://api.github.com/users/snipsco/repos","events_url":"https://api.github.com/users/snipsco/events{/privacy}","received_events_url":"https://api.github.com/users/snipsco/received_events","type":"Organization","site_admin":false},"repo":{"id":137032023,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwMzIwMjM=","name":"gazetteer-entity-parser","full_name":"snipsco/gazetteer-entity-parser","private":false,"owner":{"login":"snipsco","id":2564618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjQ2MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2564618?v=4","gravatar_id":"","url":"https://api.github.com/users/snipsco","html_url":"https://github.com/snipsco","followers_url":"https://api.github.com/users/snipsco/followers","following_url":"https://api.github.com/users/snipsco/following{/other_user}","gists_url":"https://api.github.com/users/snipsco/gists{/gist_id}","starred_url":"https://api.github.com/users/snipsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snipsco/subscriptions","organizations_url":"https://api.github.com/users/snipsco/orgs","repos_url":"https://api.github.com/users/snipsco/repos","events_url":"https://api.github.com/users/snipsco/events{/privacy}","received_events_url":"https://api.github.com/users/snipsco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/snipsco/gazetteer-entity-parser","description":"Rust library for parsing and resolving entity values based on a gazetteer","fork":false,"url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser","forks_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/forks","keys_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/teams","hooks_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/hooks","issue_events_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/events{/number}","events_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/events","assignees_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/assignees{/user}","branches_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/branches{/branch}","tags_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/tags","blobs_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/languages","stargazers_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/stargazers","contributors_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/contributors","subscribers_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/subscribers","subscription_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/subscription","commits_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/contents/{+path}","compare_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/merges","archive_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/downloads","issues_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues{/number}","pulls_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/labels{/name}","releases_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/releases{/id}","deployments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/deployments","created_at":"2018-06-12T07:13:37Z","updated_at":"2018-10-17T19:15:38Z","pushed_at":"2018-10-29T09:09:04Z","git_url":"git://github.com/snipsco/gazetteer-entity-parser.git","ssh_url":"git@github.com:snipsco/gazetteer-entity-parser.git","clone_url":"https://github.com/snipsco/gazetteer-entity-parser.git","svn_url":"https://github.com/snipsco/gazetteer-entity-parser","homepage":"","size":303,"stargazers_count":2,"watchers_count":2,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"snipsco:develop","ref":"develop","sha":"9de7844ed19865c1193accf0a274c4dff1e8658a","user":{"login":"snipsco","id":2564618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjQ2MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2564618?v=4","gravatar_id":"","url":"https://api.github.com/users/snipsco","html_url":"https://github.com/snipsco","followers_url":"https://api.github.com/users/snipsco/followers","following_url":"https://api.github.com/users/snipsco/following{/other_user}","gists_url":"https://api.github.com/users/snipsco/gists{/gist_id}","starred_url":"https://api.github.com/users/snipsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snipsco/subscriptions","organizations_url":"https://api.github.com/users/snipsco/orgs","repos_url":"https://api.github.com/users/snipsco/repos","events_url":"https://api.github.com/users/snipsco/events{/privacy}","received_events_url":"https://api.github.com/users/snipsco/received_events","type":"Organization","site_admin":false},"repo":{"id":137032023,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwMzIwMjM=","name":"gazetteer-entity-parser","full_name":"snipsco/gazetteer-entity-parser","private":false,"owner":{"login":"snipsco","id":2564618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjQ2MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2564618?v=4","gravatar_id":"","url":"https://api.github.com/users/snipsco","html_url":"https://github.com/snipsco","followers_url":"https://api.github.com/users/snipsco/followers","following_url":"https://api.github.com/users/snipsco/following{/other_user}","gists_url":"https://api.github.com/users/snipsco/gists{/gist_id}","starred_url":"https://api.github.com/users/snipsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snipsco/subscriptions","organizations_url":"https://api.github.com/users/snipsco/orgs","repos_url":"https://api.github.com/users/snipsco/repos","events_url":"https://api.github.com/users/snipsco/events{/privacy}","received_events_url":"https://api.github.com/users/snipsco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/snipsco/gazetteer-entity-parser","description":"Rust library for parsing and resolving entity values based on a gazetteer","fork":false,"url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser","forks_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/forks","keys_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/teams","hooks_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/hooks","issue_events_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/events{/number}","events_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/events","assignees_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/assignees{/user}","branches_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/branches{/branch}","tags_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/tags","blobs_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/languages","stargazers_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/stargazers","contributors_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/contributors","subscribers_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/subscribers","subscription_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/subscription","commits_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/contents/{+path}","compare_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/merges","archive_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/downloads","issues_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues{/number}","pulls_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/labels{/name}","releases_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/releases{/id}","deployments_url":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/deployments","created_at":"2018-06-12T07:13:37Z","updated_at":"2018-10-17T19:15:38Z","pushed_at":"2018-10-29T09:09:04Z","git_url":"git://github.com/snipsco/gazetteer-entity-parser.git","ssh_url":"git@github.com:snipsco/gazetteer-entity-parser.git","clone_url":"https://github.com/snipsco/gazetteer-entity-parser.git","svn_url":"https://github.com/snipsco/gazetteer-entity-parser","homepage":"","size":303,"stargazers_count":2,"watchers_count":2,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/27"},"html":{"href":"https://github.com/snipsco/gazetteer-entity-parser/pull/27"},"issue":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/27"},"comments":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/snipsco/gazetteer-entity-parser/statuses/85b94d8e824745328ee0010ec2c6c7caa7326399"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":9,"additions":568,"deletions":1372,"changed_files":7}}
{"actor":{"display_login":"adrienball"}}