{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/1410","labels_url":"https://api.github.com/repos/neovim/neovim/issues/1410/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1410/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/1410/events","html_url":"https://github.com/neovim/neovim/issues/1410","id":47935374,"number":1410,"title":"clang-format slow on big files compared to vim","user":{"login":"oni-link","id":2077655,"avatar_url":"https://avatars.githubusercontent.com/u/2077655?v=3","gravatar_id":"","url":"https://api.github.com/users/oni-link","html_url":"https://github.com/oni-link","followers_url":"https://api.github.com/users/oni-link/followers","following_url":"https://api.github.com/users/oni-link/following{/other_user}","gists_url":"https://api.github.com/users/oni-link/gists{/gist_id}","starred_url":"https://api.github.com/users/oni-link/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oni-link/subscriptions","organizations_url":"https://api.github.com/users/oni-link/orgs","repos_url":"https://api.github.com/users/oni-link/repos","events_url":"https://api.github.com/users/oni-link/events{/privacy}","received_events_url":"https://api.github.com/users/oni-link/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/performance","name":"performance","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-11-06T08:35:29Z","updated_at":"2015-08-18T02:16:27Z","closed_at":null,"body":"clang-format in Neovim is noticeable slower when used on big files compared to Vim.\r\n\r\nTesting on src/nvim/eval.c, formating the whole file:\r\n```vim\r\n:let start=reltime()| execute \"1,$ pyf /path/to/clang-format.py\" |echo 'system() = ' . reltimestr(reltime(start))\r\n```\r\nNeovim: ~12.9s\r\nVim      : ~0.6s\r\n\r\nWhere does this slowdown come from?\r\n\r\nNeovim version: 4cc26fba249361cccd791a76fc35c46d851096a5\r\nBuild command: rm -rf build/ && make cmake CFLAGS='-Wno-error -DNDEBUG -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1' && make -j5\r\n\r\nclang-format version 3.6.0 (http://llvm.org/git/clang.git f65002072fe308f93a0ef04054b56218b00c2a34) (http://llvm.org/git/llvm.git 84dc1b5c92becc0c7f87d0e16afa57e0bcf84dd4)"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/132037641","html_url":"https://github.com/neovim/neovim/issues/1410#issuecomment-132037641","issue_url":"https://api.github.com/repos/neovim/neovim/issues/1410","id":132037641,"user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T02:16:27Z","updated_at":"2015-08-18T02:16:27Z","body":"@oni-link Is this still an issue?"}}