{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/unite.vim/issues/888","labels_url":"https://api.github.com/repos/Shougo/unite.vim/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/unite.vim/issues/888/comments","events_url":"https://api.github.com/repos/Shougo/unite.vim/issues/888/events","html_url":"https://github.com/Shougo/unite.vim/issues/888","id":66144896,"number":888,"title":"Unite slow when used in first buffer ([No Name])","user":{"login":"PonderingGrower","id":2212681,"avatar_url":"https://avatars.githubusercontent.com/u/2212681?v=3","gravatar_id":"","url":"https://api.github.com/users/PonderingGrower","html_url":"https://github.com/PonderingGrower","followers_url":"https://api.github.com/users/PonderingGrower/followers","following_url":"https://api.github.com/users/PonderingGrower/following{/other_user}","gists_url":"https://api.github.com/users/PonderingGrower/gists{/gist_id}","starred_url":"https://api.github.com/users/PonderingGrower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PonderingGrower/subscriptions","organizations_url":"https://api.github.com/users/PonderingGrower/orgs","repos_url":"https://api.github.com/users/PonderingGrower/repos","events_url":"https://api.github.com/users/PonderingGrower/events{/privacy}","received_events_url":"https://api.github.com/users/PonderingGrower/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shougo/unite.vim/labels/Performance","name":"Performance","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-03T13:16:47Z","updated_at":"2015-04-06T06:58:55Z","closed_at":null,"body":"Hi,\r\n\r\nI've encountered this in both vim and neovim. When I start a new vim instance and try to use Unite when the first empty buffer named `[No Name]` is focused Unite seems much slower than if I tried using it with, for exmaple, my `.vimrc` focused.\r\n\r\nThis is a profile when attempting this in vim:\r\nhttps://dl.dropboxusercontent.com/u/1973208/vim_profile.log\r\n\r\nThe function that takes the longest to finish is `unite#filters#lua_filter_patterns()` - 0.745 s.\r\n\r\nThis is a profile from neovim when doing the same thing\r\nhttps://dl.dropboxusercontent.com/u/1973208/nvim_profile.log\r\n\r\nThis time `unite#filters#vim_filter_patterns()` (since neovim does not have `if_lua`) is the one that takes the longest - 2.57 s.\r\n\r\nAnd this is the same but Unite was executed with a split with my `.vimrc` was focused:\r\nhttps://dl.dropboxusercontent.com/u/1973208/nvim_normal_profile.log\r\n\r\nHere `unite#filters#vim_filter_patterns()` takes only 0.033 s, which is much better.\r\n\r\nI'm not sure what this is about but it does get annoying."},"comment":{"url":"https://api.github.com/repos/Shougo/unite.vim/issues/comments/89949868","html_url":"https://github.com/Shougo/unite.vim/issues/888#issuecomment-89949868","issue_url":"https://api.github.com/repos/Shougo/unite.vim/issues/888","id":89949868,"user":{"login":"tony","id":26336,"avatar_url":"https://avatars.githubusercontent.com/u/26336?v=3","gravatar_id":"","url":"https://api.github.com/users/tony","html_url":"https://github.com/tony","followers_url":"https://api.github.com/users/tony/followers","following_url":"https://api.github.com/users/tony/following{/other_user}","gists_url":"https://api.github.com/users/tony/gists{/gist_id}","starred_url":"https://api.github.com/users/tony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony/subscriptions","organizations_url":"https://api.github.com/users/tony/orgs","repos_url":"https://api.github.com/users/tony/repos","events_url":"https://api.github.com/users/tony/events{/privacy}","received_events_url":"https://api.github.com/users/tony/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T06:58:55Z","updated_at":"2015-04-06T06:58:55Z","body":"@Shougo That is enough to make me bring back unite.vim to my config. Thank you.\r\n\r\nI would like to take it further. It would be nice to have a feature to use just ``file_rec/git`` but have a failsafe fallback option.\r\n\r\nIs there any other tweaks I can make to my ``unite.vim`` to make it faster / more responsive?"}}