{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/probematch/issues/21","repository_url":"https://api.github.com/repos/mapbox/probematch","labels_url":"https://api.github.com/repos/mapbox/probematch/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/probematch/issues/21/comments","events_url":"https://api.github.com/repos/mapbox/probematch/issues/21/events","html_url":"https://github.com/mapbox/probematch/issues/21","id":324132387,"number":21,"title":"Index whole ways, not segments","user":{"login":"benjamintd","id":11202803,"avatar_url":"https://avatars0.githubusercontent.com/u/11202803?v=4","gravatar_id":"","url":"https://api.github.com/users/benjamintd","html_url":"https://github.com/benjamintd","followers_url":"https://api.github.com/users/benjamintd/followers","following_url":"https://api.github.com/users/benjamintd/following{/other_user}","gists_url":"https://api.github.com/users/benjamintd/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamintd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamintd/subscriptions","organizations_url":"https://api.github.com/users/benjamintd/orgs","repos_url":"https://api.github.com/users/benjamintd/repos","events_url":"https://api.github.com/users/benjamintd/events{/privacy}","received_events_url":"https://api.github.com/users/benjamintd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"benjamintd","id":11202803,"avatar_url":"https://avatars0.githubusercontent.com/u/11202803?v=4","gravatar_id":"","url":"https://api.github.com/users/benjamintd","html_url":"https://github.com/benjamintd","followers_url":"https://api.github.com/users/benjamintd/followers","following_url":"https://api.github.com/users/benjamintd/following{/other_user}","gists_url":"https://api.github.com/users/benjamintd/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamintd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamintd/subscriptions","organizations_url":"https://api.github.com/users/benjamintd/orgs","repos_url":"https://api.github.com/users/benjamintd/repos","events_url":"https://api.github.com/users/benjamintd/events{/privacy}","received_events_url":"https://api.github.com/users/benjamintd/received_events","type":"User","site_admin":false},"assignees":[{"login":"benjamintd","id":11202803,"avatar_url":"https://avatars0.githubusercontent.com/u/11202803?v=4","gravatar_id":"","url":"https://api.github.com/users/benjamintd","html_url":"https://github.com/benjamintd","followers_url":"https://api.github.com/users/benjamintd/followers","following_url":"https://api.github.com/users/benjamintd/following{/other_user}","gists_url":"https://api.github.com/users/benjamintd/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamintd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamintd/subscriptions","organizations_url":"https://api.github.com/users/benjamintd/orgs","repos_url":"https://api.github.com/users/benjamintd/repos","events_url":"https://api.github.com/users/benjamintd/events{/privacy}","received_events_url":"https://api.github.com/users/benjamintd/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-17T18:18:18Z","updated_at":"2018-05-18T15:30:56Z","closed_at":"2018-05-18T15:30:56Z","author_association":"CONTRIBUTOR","body":"Right now we are indexing individual segments. While this probably yields faster matching, we are creating many segment objects that reference the parent way, which is very inefficient in terms of memory.\r\n\r\nTo implement this, we need to use the `index` property of cheap ruler's [pointOnLne](https://github.com/mapbox/cheap-ruler#pointonlineline-p) method in order to do the bearing comparison.\r\n\r\nOther than that, we should make sure that performance stays good.\r\n\r\ncc @mapbox/telemetry "}}
{"actor":{"display_login":"benjamintd"}}