{"action":"created","issue":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1026","repository_url":"https://api.github.com/repos/vim-airline/vim-airline","labels_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1026/labels{/name}","comments_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1026/comments","events_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1026/events","html_url":"https://github.com/vim-airline/vim-airline/issues/1026","id":133082391,"number":1026,"title":"Airline caused massive lag when editing ruby files","user":{"login":"uri","id":676443,"avatar_url":"https://avatars0.githubusercontent.com/u/676443?v=3","gravatar_id":"","url":"https://api.github.com/users/uri","html_url":"https://github.com/uri","followers_url":"https://api.github.com/users/uri/followers","following_url":"https://api.github.com/users/uri/following{/other_user}","gists_url":"https://api.github.com/users/uri/gists{/gist_id}","starred_url":"https://api.github.com/users/uri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uri/subscriptions","organizations_url":"https://api.github.com/users/uri/orgs","repos_url":"https://api.github.com/users/uri/repos","events_url":"https://api.github.com/users/uri/events{/privacy}","received_events_url":"https://api.github.com/users/uri/received_events","type":"User","site_admin":false},"labels":[{"id":45794306,"url":"https://api.github.com/repos/vim-airline/vim-airline/labels/performance","name":"performance","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":49,"created_at":"2016-02-11T20:39:32Z","updated_at":"2017-06-27T11:57:09Z","closed_at":null,"body":"So I've seen most of the suggestions for speeding up Ruby and Vim specifically and I've implemented almost all of them. But what ended up having the most impact was actually removing this plugin. I profile about 5 seconds of editing a ruby file the results are below.\n\nI'm not sure if this is specific to Ruby either. I know Ruby syntax and Vim have some problems so the lag might not be apparent for other languages.\n\nCould there have been something wrong with my setup?\n\nThese were my settings in my vimrc:\n\n```\nlet g:tmuxline_powerline_separators = 0\nlet g:airline_powerline_fonts = 1\n```\n#### vim :profile\n\n```\nFUNCTIONS SORTED ON TOTAL TIME\ncount  total (s)   self (s)  function\n  140   1.643515   0.010460  airline#check_mode()\n  137   1.624063   0.442040  airline#highlighter#highlight()\n 3180   0.781071   0.087049  <SNR>130_exec_separator()\n 6360   0.595579   0.039114  airline#themes#get_highlight()\n 6360   0.556465   0.169649  airline#highlighter#get_highlight()\n16820   0.505013             airline#highlighter#exec()\n12720   0.337023             <SNR>130_get_syn()\n 6360   0.049793             <SNR>130_get_array()\n   81   0.029855   0.003674  airline#extensions#hunks#get_hunks()\n   81   0.026181   0.001598  <SNR>123_get_hunks()\n   81   0.024583   0.000711  <SNR>123_get_hunks_gitgutter()\n   81   0.023482   0.000521  <SNR>123_is_branch_empty()\n  162   0.023343   0.001074  airline#extensions#branch#head()\n    1   0.022072   0.000313  <SNR>124_get_git_untracked()\n  137   0.008992   0.003374  airline#highlighter#highlight_modified_inactive()\n   81   0.005991   0.004805  airline#extensions#whitespace#check()\n    1   0.003336   0.000427  GetRubyIndent()\n  744   0.003168             airline#util#wrap()\n  324   0.002638             airline#util#append()\n   37   0.002437             <SNR>106_Highlight_Matching_Pair()\n\nFUNCTIONS SORTED ON SELF TIME\ncount  total (s)   self (s)  function\n16820              0.505013  airline#highlighter#exec()\n  137   1.624063   0.442040  airline#highlighter#highlight()\n12720              0.337023  <SNR>130_get_syn()\n 6360   0.556465   0.169649  airline#highlighter#get_highlight()\n 3180   0.781071   0.087049  <SNR>130_exec_separator()\n 6360              0.049793  <SNR>130_get_array()\n 6360   0.595579   0.039114  airline#themes#get_highlight()\n  140   1.643515   0.010460  airline#check_mode()\n   81   0.005991   0.004805  airline#extensions#whitespace#check()\n   81   0.029855   0.003674  airline#extensions#hunks#get_hunks()\n  137   0.008992   0.003374  airline#highlighter#highlight_modified_inactive()\n  744              0.003168  airline#util#wrap()\n  324              0.002638  airline#util#append()\n   37              0.002437  <SNR>106_Highlight_Matching_Pair()\n  140              0.001754  airline#statusline()\n  140              0.001641  airline#parts#ffenc()\n   81   0.026181   0.001598  <SNR>123_get_hunks()\n    5              0.001531  <SNR>156_IsInStringOrComment()\n   81   0.001702   0.001320  airline#extensions#branch#get_head()\n    1              0.001186  <SNR>125_check_mixed_indent()\n\n```\n#### version\n\n```\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 19 2016 18:00:08)\nMacOS X (unix) version\nIncluded patches: 1-1090\nCompiled by Homebrew\nHuge version without GUI.  Features included (+) or not (-):\n+acl             +cindent         +conceal         +digraphs        +farsi           -gettext         +libcall         +mksession       +mouse_netterm   -mzscheme        +profile         +scrollbind      +syntax          +textobjects     +visualextra     -X11\n+arabic          -clientserver    +cryptv          -dnd             +file_in_path    -hangul_input    +linebreak       +modify_fname    +mouse_sgr       +netbeans_intg   +python          +signs           +tag_binary      +title           +viminfo         -xfontset\n+autocmd         +clipboard       +cscope          -ebcdic          +find_in_path    +iconv           +lispindent      +mouse           -mouse_sysmouse  +path_extra      -python3         +smartindent     +tag_old_static  -toolbar         +vreplace        -xim\n-balloon_eval    +cmdline_compl   +cursorbind      +emacs_tags      +float           +insert_expand   +listcmds        -mouseshape      +mouse_urxvt     +perl            +quickfix        -sniff           -tag_any_white   +user_commands   +wildignore      -xsmp\n-browse          +cmdline_hist    +cursorshape     +eval            +folding         +jumplist        +localmap        +mouse_dec       +mouse_xterm     +persistent_undo +reltime         +startuptime     -tcl             +vertsplit       +wildmenu        -xterm_clipboard\n++builtin_terms  +cmdline_info    +dialog_con      +ex_extra        -footer          +keymap          +lua             -mouse_gpm       +multi_byte      +postscript      +rightleft       +statusline      +terminfo        +virtualedit     +windows         -xterm_save\n+byte_offset     +comments        +diff            +extra_search    +fork()          +langmap         +menu            -mouse_jsbterm   +multi_lang      +printer         +ruby            -sun_workshop    +termresponse    +visual          +writebackup     -xpm\n   system vimrc file: \"$VIM/vimrc\"\n     user vimrc file: \"$HOME/.vimrc\"\n 2nd user vimrc file: \"~/.vim/vimrc\"\n      user exrc file: \"$HOME/.exrc\"\n  fall-back for $VIM: \"/usr/local/share/vim\"\nCompilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H   -F/usr/local/Frameworks -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -DMACOS_X_UNIX  -Os -w -pipe -march=native -mmacosx-version-min=10.11 -isysroot /Applications/Xcode.app/Contents/Developer/\nPlatforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1\nLinking: /usr/bin/clang   -L. -L/Users/uri/.rbenv/versions/2.2.3/lib  -fstack-protector -L/usr/local/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o vim        -lm  -lncurses\n-liconv -framework Cocoa  -L/usr/local/lib -llua -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -F/usr/local/Cellar/python/2.7.11/Frameworks -framework Python   -lruby-static -framework CoreFoundation -lgmp -lobjc -L/Users/uri/.rbenv/versions/2.2.3/lib\n```\n#### commit\n- vim-airline: 1dc8eac3d232bdcc7941deb47f300ac79e344873\n- vim-airline-themes: https://github.com/vim-airline/vim-airline-themes/commit/d928393566ff12859b1a7e79b2ca3cb6fe818161\n#### minivimrc\n\n_Will edit this in once I get some time to try it._\n#### other\n- OS X 10.11.3\n- iterm2 nightly builds\n- terminal emulated: xterm-256color\n- non-GUI\n"},"comment":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/comments/311336370","html_url":"https://github.com/vim-airline/vim-airline/issues/1026#issuecomment-311336370","issue_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1026","id":311336370,"user":{"login":"chrisbra","id":244927,"avatar_url":"https://avatars3.githubusercontent.com/u/244927?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisbra","html_url":"https://github.com/chrisbra","followers_url":"https://api.github.com/users/chrisbra/followers","following_url":"https://api.github.com/users/chrisbra/following{/other_user}","gists_url":"https://api.github.com/users/chrisbra/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbra/subscriptions","organizations_url":"https://api.github.com/users/chrisbra/orgs","repos_url":"https://api.github.com/users/chrisbra/repos","events_url":"https://api.github.com/users/chrisbra/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbra/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T11:57:09Z","updated_at":"2017-06-27T11:57:09Z","body":"BTW: What hunk plugin are you using?"}}
{"actor":{"display_login":"chrisbra"}}