{"action":"created","issue":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/298","repository_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit","labels_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/298/comments","events_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/298/events","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/issues/298","id":156047680,"number":298,"title":"load_vi_mode() takes an excessive amount of time, even when vi mode isn't used.","user":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-20T20:45:23Z","updated_at":"2016-05-20T20:59:40Z","closed_at":null,"body":"Hi @jonathanslenders et al., I just wanted to let you know that after profiling xonsh startup times a bit, I have found that one of the major culprits is the `load_vi_mode()` function.  This figure shows the breakdown for the shell initialization function, which calls the KeyManager initializer:\r\nhttp://vmprof.com/#/56e022bb8e1d53cffec42ff1b8d230b6?id=2,0,0&view=flames\r\n\r\nWorst of all, there doesn't seem to be a way to turn this off selectively in the event that vi mode won't be used.  Even weirder is that the emacs mode loading doesn't take nearly as long.\r\n\r\nThis was on v1.0\r\n\r\nA fix would be great, because we'd like to keep our startup times as low as possible."},"comment":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/comments/220717176","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/issues/298#issuecomment-220717176","issue_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/298","id":220717176,"user":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T20:59:40Z","updated_at":"2016-05-20T20:59:40Z","body":"Thanks @jonathanslenders!"}}
{"actor":{"display_login":"scopatz"}}