Closed localhostdotdev closed 5 years ago
I have a file that only contains - title "not found" and is taking maybe 0.5s to load, so I got curious and profiled vim and seems like the rails plugin is the cullprit.
- title "not found"
I'm definitely not a vim expert so not sure how to interpret those results.
FUNCTIONS SORTED ON TOTAL TIME count total (s) self (s) function 1 0.103063 0.001856 <SNR>15_LoadFTPlugin() 1 0.081842 0.000716 <SNR>3_SynSet() 1 0.057339 0.001432 rails#ruby_setup() 7 0.056720 0.003232 <SNR>31_app_projections() 42 0.048061 0.017369 <SNR>31_combine_projections() 1 0.042191 0.002394 rails#buffer_setup() 1 0.037079 0.001132 <SNR>48_query_path() 280 0.030692 0.029704 <SNR>31_extend_projection() 2 0.023968 0.000309 <SNR>31_readable_controller_name() 2 0.022628 0.004573 <SNR>31_readable_find_affinity() 1 0.021469 0.001379 <SNR>31_app_internal_load_path() 1 0.020931 0.000695 <SNR>31_BufProjectionCommands() 1 0.012448 0.003448 <SNR>31_app_commands() 1 0.012173 0.000065 <SNR>31_readable_projected() 1 0.012108 0.002910 <SNR>31_readable_projected_with_raw() 11 0.005135 0.002696 <SNR>31_buffer_name() 14 0.004542 0.004349 <SNR>31_define_navcommand() 59 0.004496 0.003653 <SNR>31_app_has() 545 0.003035 rails#lencmp() 20 0.002973 0.000924 <SNR>31_buffer_app() FUNCTIONS SORTED ON SELF TIME count total (s) self (s) function 280 0.030692 0.029704 <SNR>31_extend_projection() 42 0.048061 0.017369 <SNR>31_combine_projections() 2 0.022628 0.004573 <SNR>31_readable_find_affinity() 14 0.004542 0.004349 <SNR>31_define_navcommand() 59 0.004496 0.003653 <SNR>31_app_has() 1 0.012448 0.003448 <SNR>31_app_commands() 7 0.056720 0.003232 <SNR>31_app_projections() 545 0.003035 rails#lencmp() 1 0.012108 0.002910 <SNR>31_readable_projected_with_raw() 11 0.005135 0.002696 <SNR>31_buffer_name() 9 0.002963 0.002462 <SNR>31_addfilecmds() 1 0.042191 0.002394 rails#buffer_setup() 1 0.103063 0.001856 <SNR>15_LoadFTPlugin() 51 0.002673 0.001734 rails#app() 119 0.001732 <SNR>31_sub() 1 0.057339 0.001432 rails#ruby_setup() 1 0.021469 0.001379 <SNR>31_app_internal_load_path() 151 0.001366 <SNR>31_split() 1 0.037079 0.001132 <SNR>48_query_path() 56 0.001059 <SNR>31_app_path()
(I have a pretty simple .vimrc)
Nevermind, removing vim-rails doesn't change much, must be something else (probably the slim plugin :) ).
vim-rails
edit: was bogado/file-line
bogado/file-line
I have a file that only contains
- title "not found"
and is taking maybe 0.5s to load, so I got curious and profiled vim and seems like the rails plugin is the cullprit.I'm definitely not a vim expert so not sure how to interpret those results.
(I have a pretty simple .vimrc)