{"action":"created","issue":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/367","repository_url":"https://api.github.com/repos/shelljs/shelljs","labels_url":"https://api.github.com/repos/shelljs/shelljs/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/shelljs/shelljs/issues/367/comments","events_url":"https://api.github.com/repos/shelljs/shelljs/issues/367/events","html_url":"https://github.com/shelljs/shelljs/pull/367","id":135133267,"number":367,"title":"perf(cd): only run `stat` once","user":{"login":"ariporad","id":1817508,"avatar_url":"https://avatars.githubusercontent.com/u/1817508?v=3","gravatar_id":"","url":"https://api.github.com/users/ariporad","html_url":"https://github.com/ariporad","followers_url":"https://api.github.com/users/ariporad/followers","following_url":"https://api.github.com/users/ariporad/following{/other_user}","gists_url":"https://api.github.com/users/ariporad/gists{/gist_id}","starred_url":"https://api.github.com/users/ariporad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariporad/subscriptions","organizations_url":"https://api.github.com/users/ariporad/orgs","repos_url":"https://api.github.com/users/ariporad/repos","events_url":"https://api.github.com/users/ariporad/events{/privacy}","received_events_url":"https://api.github.com/users/ariporad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shelljs/shelljs/labels/low%20priority","name":"low priority","color":"aaaaaa"},{"url":"https://api.github.com/repos/shelljs/shelljs/labels/perf","name":"perf","color":"00A000"}],"state":"open","locked":false,"assignee":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/shelljs/shelljs/milestones/3","html_url":"https://github.com/shelljs/shelljs/milestones/v0.7.0","labels_url":"https://api.github.com/repos/shelljs/shelljs/milestones/3/labels","id":1555794,"number":3,"title":"v0.7.0","description":"","creator":{"login":"ariporad","id":1817508,"avatar_url":"https://avatars.githubusercontent.com/u/1817508?v=3","gravatar_id":"","url":"https://api.github.com/users/ariporad","html_url":"https://github.com/ariporad","followers_url":"https://api.github.com/users/ariporad/followers","following_url":"https://api.github.com/users/ariporad/following{/other_user}","gists_url":"https://api.github.com/users/ariporad/gists{/gist_id}","starred_url":"https://api.github.com/users/ariporad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariporad/subscriptions","organizations_url":"https://api.github.com/users/ariporad/orgs","repos_url":"https://api.github.com/users/ariporad/repos","events_url":"https://api.github.com/users/ariporad/events{/privacy}","received_events_url":"https://api.github.com/users/ariporad/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":28,"state":"open","created_at":"2016-02-01T14:48:26Z","updated_at":"2016-03-01T01:14:02Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-02-20T23:14:38Z","updated_at":"2016-03-01T01:16:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shelljs/shelljs/pulls/367","html_url":"https://github.com/shelljs/shelljs/pull/367","diff_url":"https://github.com/shelljs/shelljs/pull/367.diff","patch_url":"https://github.com/shelljs/shelljs/pull/367.patch"},"body":"This increases performance somewhat"},"comment":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/comments/190478566","html_url":"https://github.com/shelljs/shelljs/pull/367#issuecomment-190478566","issue_url":"https://api.github.com/repos/shelljs/shelljs/issues/367","id":190478566,"user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T01:16:52Z","updated_at":"2016-03-01T01:16:52Z","body":"@ariporad I think try-catch may be necessary here. I know it adds some performance overhead, but `statSync()` throws an error if the file doesn't exist (and the alternative function is deprecated). I think we should just stick with this. We'll never beat Bash's `cd` (it's a shell builtin written in C), but this is probably good enough."}}