{"action":"created","issue":{"url":"https://api.github.com/repos/jreybert/vimagit/issues/36","repository_url":"https://api.github.com/repos/jreybert/vimagit","labels_url":"https://api.github.com/repos/jreybert/vimagit/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jreybert/vimagit/issues/36/comments","events_url":"https://api.github.com/repos/jreybert/vimagit/issues/36/events","html_url":"https://github.com/jreybert/vimagit/issues/36","id":115208434,"number":36,"title":"magit commands are slow","user":{"login":"goweol","id":5717065,"avatar_url":"https://avatars.githubusercontent.com/u/5717065?v=3","gravatar_id":"","url":"https://api.github.com/users/goweol","html_url":"https://github.com/goweol","followers_url":"https://api.github.com/users/goweol/followers","following_url":"https://api.github.com/users/goweol/following{/other_user}","gists_url":"https://api.github.com/users/goweol/gists{/gist_id}","starred_url":"https://api.github.com/users/goweol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goweol/subscriptions","organizations_url":"https://api.github.com/users/goweol/orgs","repos_url":"https://api.github.com/users/goweol/repos","events_url":"https://api.github.com/users/goweol/events{/privacy}","received_events_url":"https://api.github.com/users/goweol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-11-05T04:45:18Z","updated_at":"2016-02-04T08:47:57Z","closed_at":null,"body":":Magit or commands in magit buffer took some time.\r\nmaster branch took about 5 seconds and next branch took about 3 seconds on my real project repo (89MiB of git objects).\r\n\r\nSo that, I made a simple repo and test vimagit's 'next' branch.\r\n<blockquote>\r\n$ mkdir test; cd test; git init<br>\r\n$ echo 1 > 1;  git add 1; git commit -m test<br>\r\n$ echo 1 >> 1<br>\r\n$ gvim<br>\r\n</blockquote>\r\nand I run ':Magit' and typing some hotkeys like S or CR.\r\nAll the commands took about 2 seconds.\r\n\r\nFrom the command line, git is fast.\r\n<blockquote>\r\n$ git status -sb<br>\r\n## master<br>\r\n M 1<br>\r\n<br>\r\n$ time git diff --stat<br>\r\n 1 | 1 +<br>\r\n 1 file changed, 1 insertion(+)<br>\r\n<br>\r\nreal\t0m0.043s<br>\r\nuser\t0m0.004s<br>\r\nsys\t0m0.028s<br>\r\n</blockquote>\r\n\r\nvim and git version:\r\n<blockquote>\r\n$ LANG= vim --version | head -2<br>\r\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 14 2015 16:22:00)<br>\r\nIncluded patches: 1-898<br>\r\n<br>\r\n$ git version<br>\r\ngit version 2.6.2.280.g74301d6<br>\r\n</blockquote>\r\nMost of time, I use GVIM (GTK2).\r\n\r\nBecause my PC environment is slow (antivirus, virtualbox), I'm now satisfied with the next branch.\r\nBut If you think '2 seconds' is yet slow (compare to command line speed), I will investigate if you guide me.\r\nI have no objection if you close this issue without further action."},"comment":{"url":"https://api.github.com/repos/jreybert/vimagit/issues/comments/179712404","html_url":"https://github.com/jreybert/vimagit/issues/36#issuecomment-179712404","issue_url":"https://api.github.com/repos/jreybert/vimagit/issues/36","id":179712404,"user":{"login":"fpnick","id":6462223,"avatar_url":"https://avatars.githubusercontent.com/u/6462223?v=3","gravatar_id":"","url":"https://api.github.com/users/fpnick","html_url":"https://github.com/fpnick","followers_url":"https://api.github.com/users/fpnick/followers","following_url":"https://api.github.com/users/fpnick/following{/other_user}","gists_url":"https://api.github.com/users/fpnick/gists{/gist_id}","starred_url":"https://api.github.com/users/fpnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpnick/subscriptions","organizations_url":"https://api.github.com/users/fpnick/orgs","repos_url":"https://api.github.com/users/fpnick/repos","events_url":"https://api.github.com/users/fpnick/events{/privacy}","received_events_url":"https://api.github.com/users/fpnick/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T08:47:57Z","updated_at":"2016-02-04T08:47:57Z","body":"Sure:\r\n\r\nOpening Magit in Vim: 11sec\r\nRefreshing Magit Buffer: 10sec"}}