introduce revitalizer! #112

Merged
merged 1 commit into from Mar 22, 2016

Projects

None yet

1 participant

@haya14busa
Owner

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
@haya14busa introduce revitalizer!
It should reduce time of loading vital modules.
ff34717
@haya14busa
Owner

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