{"action":"closed","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/2075","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/2075/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/2075/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/2075/events","html_url":"https://github.com/lodash/lodash/issues/2075","id":137947683,"number":2075,"title":"Memoize property paths given to stringToPath","user":{"login":"megawac","id":3475472,"avatar_url":"https://avatars.githubusercontent.com/u/3475472?v=3","gravatar_id":"","url":"https://api.github.com/users/megawac","html_url":"https://github.com/megawac","followers_url":"https://api.github.com/users/megawac/followers","following_url":"https://api.github.com/users/megawac/following{/other_user}","gists_url":"https://api.github.com/users/megawac/gists{/gist_id}","starred_url":"https://api.github.com/users/megawac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megawac/subscriptions","organizations_url":"https://api.github.com/users/megawac/orgs","repos_url":"https://api.github.com/users/megawac/repos","events_url":"https://api.github.com/users/megawac/events{/privacy}","received_events_url":"https://api.github.com/users/megawac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T18:04:13Z","updated_at":"2016-03-02T20:12:52Z","closed_at":"2016-03-02T20:12:52Z","body":"In many applications `stringToPath` will be indirectly called with the same path multiple times. These paths may be complex and relatively expensive to convert to an array path.\r\n\r\nIt probably is worth considering memoizing the results of `stringToPath` for an easy perf which I suspect will outweigh any of the memory considerations."}}