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

introduce revitalizer! #112

Merged
merged 1 commit into from Mar 22, 2016

Conversation

Projects
None yet
1 participant
@haya14busa
Owner

haya14busa commented Mar 22, 2016

It will reduce time of loading vital modules.

command! -bar TimerStart let start_time = reltime()
command! -bar TimerEnd echo reltimestr(reltime(start_time)) | unlet start_time

function! s:_vital_of() abort
  let V = vital#of('incsearch')
  call V.load('Data.List')
  call V.unload()
endfunction

function! s:_vital_incsearch_of() abort
  let V = vital#incsearch#of()
  call V.load('Data.List')
  call V.unload()
endfunction

let s:times = 100

TimerStart
for _ in range(s:times)
  call s:_vital_of()
endfor
TimerEnd
" => 1.565324

TimerStart
for _ in range(s:times)
  call s:_vital_incsearch_of()
endfor
TimerEnd
" => 0.028437
before (x 100) after (x 100)
1.565324 sec 0.028437 sec
introduce revitalizer!
It should reduce time of loading vital modules.
@haya14busa

This comment has been minimized.

Show comment
Hide comment
@haya14busa
Owner

haya14busa commented Mar 22, 2016

ref: #85

@haya14busa haya14busa merged commit 23cba45 into master Mar 22, 2016

4 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@haya14busa haya14busa deleted the revitalizer branch Mar 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment