-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay on first press #81
Comments
I implemented Could you please trying this branch with below config in your vimrc? call incsearch#preload() |
Done. Delay is really moved to vim startup time, so it could be valid option to toggle preloading (however, neobundle lazy loading is more consistent). Here piece of my profiling, related to incsearch-preload, sorted by total time:
But I have one more result: Here could exist compromise -- split initialization (and loading time) to 'startup' and 'on_press' pieces, each of them will consume only bearable time. However, algorithms optimizing would be best. Maybe applying somewhat granular profiling for specific functions? Or there is some kind of linewise profiling for vim... |
Thanks for the measuring. I updated vital.vim (the library incsearch.vim internally depends on) in the dev branch and there are some commits to optimize loading time, so it may reduce loading time more :)
I didn't measure it but I guess both my refactoring and the library update reduce the loading time.
Actually, the too-long loading time is depends on environment. |
To complete that note, environment for profiling -- Linux Mint, i5 (dual core), HDD :)) |
I merged dev branch into master. Could you please giving it a shot? |
Checked. You greatly optimized code -- first press on
|
Sorry for the late response. Thank you for the profiling and now delay for |
Aah, yes, it's no problem now. Thanks. |
Thanks. I'll keep improving it! |
After starting vim, pressing on
/?nN*#
launches<Plug>(incsearch-*
which innards involve too much magic and causes delay.It's only 0.6s and would be unnoticed if you work long with same copy of vim.
But when exploring big tree of sources (like kernel sources) -- in my case using ranger and vim in urxvt, each copy of vim lives only 10-15s. And I feel this delay as eternity before search.
Could time consuming operations be moved to plugin file loaded on startup with everything else, so this delay affected vim startup time instead of first press on search?
The text was updated successfully, but these errors were encountered: