{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2557","repository_url":"https://api.github.com/repos/magit/magit","labels_url":"https://api.github.com/repos/magit/magit/issues/2557/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2557/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2557/events","html_url":"https://github.com/magit/magit/issues/2557","id":134495625,"number":2557,"title":"magit-revision-insert-related-refs should default to nil due to slowness?","user":{"login":"dandavison","id":52205,"avatar_url":"https://avatars.githubusercontent.com/u/52205?v=3","gravatar_id":"","url":"https://api.github.com/users/dandavison","html_url":"https://github.com/dandavison","followers_url":"https://api.github.com/users/dandavison/followers","following_url":"https://api.github.com/users/dandavison/following{/other_user}","gists_url":"https://api.github.com/users/dandavison/gists{/gist_id}","starred_url":"https://api.github.com/users/dandavison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandavison/subscriptions","organizations_url":"https://api.github.com/users/dandavison/orgs","repos_url":"https://api.github.com/users/dandavison/repos","events_url":"https://api.github.com/users/dandavison/events{/privacy}","received_events_url":"https://api.github.com/users/dandavison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T06:45:20Z","updated_at":"2016-02-19T15:40:51Z","closed_at":null,"body":"`magit-show-commit` is taking just over 4s in the repo I'm working on. This goes down to 0.2s if I set `magit-revision-insert-related-refs` to nil. \r\n\r\nThe repo has 7.8K files, 5.9M lines and 109K commits. This is on OSX; magit git master 6b259ac.\r\n\r\nI'm opening this issue in case you think it is worth changing the default value of this variable. It obviously makes a huge UX improvement for me but of course I understand if the current default is deliberate and will be maintained as-is.\r\n\r\n`elp` output below.\r\n\r\nThank you very much for magit. I use it heavily. My *only* negative thing I can say about it is that some actions are slow (log, show-commit, some merges are hopeless and lock up emacs). I was hoping to look into them; this is the first one I've got to.\r\n\r\n```\r\nmagit-show-commit                                  1           4.070132      4.070132\r\nmagit-process-file                                 29          4.023248      0.1387326896\r\nmagit-mode-setup                                   1           3.99783       3.99783\r\nmagit-refresh-buffer                               1           3.9365740000  3.9365740000\r\nmagit-revision-refresh-buffer                      1           3.935233      3.935233\r\nmagit-insert-revision-headers                      1           3.873252      3.873252\r\nmagit-git-insert                                   15          3.199171      0.2132780666\r\nmagit-git-lines                                    3           2.721048      0.907016\r\nmagit-list-containing-branches                     1           2.293153      2.293153\r\nmagit-git-str                                      14          0.830612      0.0593294285\r\nmagit-get-current-tag                              1           0.73462       0.73462\r\nmagit-git-string                                   8           0.435541      0.054442625\r\nmagit-list-merged-branches                         1           0.422091      0.422091\r\nmagit-rev-format                                   2           0.260761      0.1303805\r\nmagit-get-next-tag                                 1           0.122024      0.122024\r\nmagit-rev-parse-safe                               13          0.0961220000  0.0073940000\r\nmagit-toplevel                                     3           0.084737      0.0282456666\r\nmagit-mode-get-buffer                              2           0.050843      0.0254215\r\nmagit-revision-mode                                1           0.031543      0.031543\r\nmagit-object-type                                  2           0.025852      0.012926\r\nmagit-rev-insert-format                            2           0.023375      0.0116875\r\nmagit-insert-revision-diff                         1           0.015177      0.015177\r\nmagit-git-wash                                     1           0.015163      0.015163\r\nmagit-rev-verify-commit                            1           0.011686      0.011686\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/186264539","html_url":"https://github.com/magit/magit/issues/2557#issuecomment-186264539","issue_url":"https://api.github.com/repos/magit/magit/issues/2557","id":186264539,"user":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T15:40:51Z","updated_at":"2016-02-19T15:40:51Z","body":"> magit-revision-insert-related-refs should default to nil due to slowness?\r\n\r\nNo, but it should be mentioned here: http://magit.vc/manual/magit/Performance.html"}}