{"action":"created","issue":{"url":"https://api.github.com/repos/scopatz/xonsh/issues/849","repository_url":"https://api.github.com/repos/scopatz/xonsh","labels_url":"https://api.github.com/repos/scopatz/xonsh/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/scopatz/xonsh/issues/849/comments","events_url":"https://api.github.com/repos/scopatz/xonsh/issues/849/events","html_url":"https://github.com/scopatz/xonsh/issues/849","id":154443184,"number":849,"title":"Performance issues with default prompt on Windows","user":{"login":"Will-W","id":997500,"avatar_url":"https://avatars.githubusercontent.com/u/997500?v=3","gravatar_id":"","url":"https://api.github.com/users/Will-W","html_url":"https://github.com/Will-W","followers_url":"https://api.github.com/users/Will-W/followers","following_url":"https://api.github.com/users/Will-W/following{/other_user}","gists_url":"https://api.github.com/users/Will-W/gists{/gist_id}","starred_url":"https://api.github.com/users/Will-W/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Will-W/subscriptions","organizations_url":"https://api.github.com/users/Will-W/orgs","repos_url":"https://api.github.com/users/Will-W/repos","events_url":"https://api.github.com/users/Will-W/events{/privacy}","received_events_url":"https://api.github.com/users/Will-W/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T09:58:14Z","updated_at":"2016-05-12T10:30:13Z","closed_at":null,"body":"I've just set up Xonsh (from master) on Windows. \r\nOn first load up, the first thing I did was hit enter a couple of times, which had a very poor performance loading the next line of prompt (several hundred milliseconds, I'd estimate). It made a poor first impression.\r\n\r\nThe default prompt is:\r\n'{env_name}{BOLD_INTENSE_GREEN}{user}@{hostname}{BOLD_INTENSE_CYAN} {cwd}{branch_color}{curr_branch}{NO_COLOR} {BOLD_INTENSE_CYAN}{prompt_end}{NO_COLOR} '\r\n\r\nAfter a little digging, it turns out to be the branch_color function that's causing the slowdown (curr_branch is fine). I have git and mercurial installed, and the performance issue is the same whether the working dir is in a repo or not."},"comment":{"url":"https://api.github.com/repos/scopatz/xonsh/issues/comments/218719431","html_url":"https://github.com/scopatz/xonsh/issues/849#issuecomment-218719431","issue_url":"https://api.github.com/repos/scopatz/xonsh/issues/849","id":218719431,"user":{"login":"melund","id":1038978,"avatar_url":"https://avatars.githubusercontent.com/u/1038978?v=3","gravatar_id":"","url":"https://api.github.com/users/melund","html_url":"https://github.com/melund","followers_url":"https://api.github.com/users/melund/followers","following_url":"https://api.github.com/users/melund/following{/other_user}","gists_url":"https://api.github.com/users/melund/gists{/gist_id}","starred_url":"https://api.github.com/users/melund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melund/subscriptions","organizations_url":"https://api.github.com/users/melund/orgs","repos_url":"https://api.github.com/users/melund/repos","events_url":"https://api.github.com/users/melund/events{/privacy}","received_events_url":"https://api.github.com/users/melund/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T10:30:13Z","updated_at":"2016-05-12T10:30:13Z","body":"I don't have a feeling of it beeing slow on windows. What is the ouptut of running `xonfig`? \r\n"}}