{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/1932","labels_url":"https://api.github.com/repos/neovim/neovim/issues/1932/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1932/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/1932/events","html_url":"https://github.com/neovim/neovim/issues/1932","id":56292091,"number":1932,"title":"Large number of directory changes on start","user":{"login":"joshaw","id":3018066,"avatar_url":"https://avatars.githubusercontent.com/u/3018066?v=3","gravatar_id":"","url":"https://api.github.com/users/joshaw","html_url":"https://github.com/joshaw","followers_url":"https://api.github.com/users/joshaw/followers","following_url":"https://api.github.com/users/joshaw/following{/other_user}","gists_url":"https://api.github.com/users/joshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/joshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshaw/subscriptions","organizations_url":"https://api.github.com/users/joshaw/orgs","repos_url":"https://api.github.com/users/joshaw/repos","events_url":"https://api.github.com/users/joshaw/events{/privacy}","received_events_url":"https://api.github.com/users/joshaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/performance","name":"performance","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-02-02T20:58:09Z","updated_at":"2015-08-19T04:28:20Z","closed_at":"2015-08-19T04:28:20Z","body":"I'm not sure what is causing this and I don't know enough to investigate, sorry.\r\n\r\nI noticed, while playing around with nvim command line options, that when using the `-V` (be verbose) flag, that a huge number of lines from that output are all, for my user, `chdir(/home/josh)`. The output can be sent to a file:\r\n```\r\n$ grep \"chdir(/home/josh)\" nvim.log | wc -l\r\n231\r\n```\r\nFor vim, this number is 50. This seems to be causing a fairly noticeable drop in starting time, though I haven't noticed a big change in general performance. Many of the instances seem to be superfluous since they occur one after the other, this is an segment from the start:\r\n```\r\nchdir(/home/josh)\r\nchdir(/usr/share/nvim)\r\nchdir(/home/josh)\r\ncould not source \"$VIM/nvimrc\"\r\nchdir(/home/josh)\r\nchdir(/home/josh)\r\nchdir(/home/josh)\r\ncould not source \"$HOME/.nvimrc\"\r\nchdir(/home/josh)\r\nchdir(/home/josh/.nvim)\r\nchdir(/home/josh)\r\nsourcing \"~/.nvim/nvimrc\"\r\n```\r\nJust thought I'd point this out though, as I said, I'm not sure how to go about investigating it.\r\nBTW this is on master, most recent commit f90c9b9105d0cae9f030875c6e32066557c17bbd, Arch Linux."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/132441446","html_url":"https://github.com/neovim/neovim/issues/1932#issuecomment-132441446","issue_url":"https://api.github.com/repos/neovim/neovim/issues/1932","id":132441446,"user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T04:28:20Z","updated_at":"2015-08-19T04:28:20Z","body":"If anyone wants to pick this up, please reopen. Doesn't seem to be a bottleneck in practice."}}