{"action":"created","issue":{"url":"https://api.github.com/repos/motemen/ghq/issues/74","repository_url":"https://api.github.com/repos/motemen/ghq","labels_url":"https://api.github.com/repos/motemen/ghq/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/motemen/ghq/issues/74/comments","events_url":"https://api.github.com/repos/motemen/ghq/issues/74/events","html_url":"https://github.com/motemen/ghq/issues/74","id":139297963,"number":74,"title":"listing local repositories is very slow since recent changes","user":{"login":"thomasf","id":330847,"avatar_url":"https://avatars.githubusercontent.com/u/330847?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasf","html_url":"https://github.com/thomasf","followers_url":"https://api.github.com/users/thomasf/followers","following_url":"https://api.github.com/users/thomasf/following{/other_user}","gists_url":"https://api.github.com/users/thomasf/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasf/subscriptions","organizations_url":"https://api.github.com/users/thomasf/orgs","repos_url":"https://api.github.com/users/thomasf/repos","events_url":"https://api.github.com/users/thomasf/events{/privacy}","received_events_url":"https://api.github.com/users/thomasf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T14:55:14Z","updated_at":"2016-05-11T16:52:52Z","closed_at":null,"body":"It take about 5 seconds now:\r\n```\r\nreal\t0m5.194s\r\nuser\t0m2.436s\r\nsys\t0m2.172s\r\n\r\n360 entries listed\r\n```\r\n\r\nI quickly tried using https://github.com/MichaelTJones/walk which helps a bit:\r\n\r\n```\r\nreal\t0m1.755s\r\nuser\t0m3.208s\r\nsys\t0m2.064s\r\n\r\n360 entries listed\r\n```\r\n\r\nReverting back to  53c4cae (bump version to 0.7.3) the speed is up again:\r\n\r\n```\r\nreal\t0m0.028s\r\nuser\t0m0.004s\r\nsys\t0m0.012s\r\n\r\n355 entries listed\r\n```\r\n\r\nFor most situations I rather go back to the old behaviour in most situations if it isn't possible to solve this somewhere else.. Maybe adding an option to stop traversal is a good idea?\r\n\r\nI also tried using MichaelTJones/walk  on 53c4cae but that only listed one repository so it's not working well there.. I havent had time to really read through the changes now so I'll be using 53c4cae as a temporary workaround."},"comment":{"url":"https://api.github.com/repos/motemen/ghq/issues/comments/218520587","html_url":"https://github.com/motemen/ghq/issues/74#issuecomment-218520587","issue_url":"https://api.github.com/repos/motemen/ghq/issues/74","id":218520587,"user":{"login":"slnovak","id":270691,"avatar_url":"https://avatars.githubusercontent.com/u/270691?v=3","gravatar_id":"","url":"https://api.github.com/users/slnovak","html_url":"https://github.com/slnovak","followers_url":"https://api.github.com/users/slnovak/followers","following_url":"https://api.github.com/users/slnovak/following{/other_user}","gists_url":"https://api.github.com/users/slnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/slnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnovak/subscriptions","organizations_url":"https://api.github.com/users/slnovak/orgs","repos_url":"https://api.github.com/users/slnovak/repos","events_url":"https://api.github.com/users/slnovak/events{/privacy}","received_events_url":"https://api.github.com/users/slnovak/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T16:52:52Z","updated_at":"2016-05-11T16:52:52Z","body":"I find that this also extends to the `ghq look` command."}}