{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1658","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1658/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1658/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1658/events","html_url":"https://github.com/Microsoft/vscode-go/pull/1658","id":320484341,"number":1658,"title":"Use -workDir on gopkgs to improve performance of packages listing","user":{"login":"uudashr","id":166053,"avatar_url":"https://avatars3.githubusercontent.com/u/166053?v=4","gravatar_id":"","url":"https://api.github.com/users/uudashr","html_url":"https://github.com/uudashr","followers_url":"https://api.github.com/users/uudashr/followers","following_url":"https://api.github.com/users/uudashr/following{/other_user}","gists_url":"https://api.github.com/users/uudashr/gists{/gist_id}","starred_url":"https://api.github.com/users/uudashr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uudashr/subscriptions","organizations_url":"https://api.github.com/users/uudashr/orgs","repos_url":"https://api.github.com/users/uudashr/repos","events_url":"https://api.github.com/users/uudashr/events{/privacy}","received_events_url":"https://api.github.com/users/uudashr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-05T06:29:17Z","updated_at":"2018-05-05T10:29:14Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-go/pulls/1658","html_url":"https://github.com/Microsoft/vscode-go/pull/1658","diff_url":"https://github.com/Microsoft/vscode-go/pull/1658.diff","patch_url":"https://github.com/Microsoft/vscode-go/pull/1658.patch"},"body":"Use `-workDir` this will improve performance.\r\n\r\nThe difference on my case:\r\nWithout -workDir\r\n```\r\ntime gopkgs |wc -l\r\n    5822\r\ngopkgs  1.95s user 2.57s system 121% cpu 3.740 total\r\nwc -l  0.00s user 0.00s system 0% cpu 3.739 total\r\n```\r\n\r\nvs\r\nUsing -workDir\r\n```\r\ntime gopkgs -workDir=.|wc -l\r\n     836\r\ngopkgs -workDir=.  0.28s user 0.31s system 225% cpu 0.261 total\r\nwc -l  0.00s user 0.00s system 1% cpu 0.259 total\r\n```\r\n3.740 vs 0.261 \r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/386795776","html_url":"https://github.com/Microsoft/vscode-go/pull/1658#issuecomment-386795776","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1658","id":386795776,"user":{"login":"uudashr","id":166053,"avatar_url":"https://avatars3.githubusercontent.com/u/166053?v=4","gravatar_id":"","url":"https://api.github.com/users/uudashr","html_url":"https://github.com/uudashr","followers_url":"https://api.github.com/users/uudashr/followers","following_url":"https://api.github.com/users/uudashr/following{/other_user}","gists_url":"https://api.github.com/users/uudashr/gists{/gist_id}","starred_url":"https://api.github.com/users/uudashr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uudashr/subscriptions","organizations_url":"https://api.github.com/users/uudashr/orgs","repos_url":"https://api.github.com/users/uudashr/repos","events_url":"https://api.github.com/users/uudashr/events{/privacy}","received_events_url":"https://api.github.com/users/uudashr/received_events","type":"User","site_admin":false},"created_at":"2018-05-05T10:29:14Z","updated_at":"2018-05-05T10:29:14Z","author_association":"CONTRIBUTOR","body":"Nevermind.. fixed. Just need to delete the yarn.lock and node_modules"}}
{"actor":{"display_login":"uudashr"}}