Bram, apologies for sending private message by mistake.
Scroll text like a crazy with trackpad (iMac with 4 Cores)
Patched version: aprox. max 70% CPU usage
Unpatched version: aprox. max 35% CPU usage
I find a reasonable work around for sluggishness in normal scrolling changing my .vimrc:
< let g:syntax = '???'
< let g:currentTag = '???'
< autocmd CursorHold * let g:syntax = SyntaxItem()
< autocmd CursorHold * let g:currentTag = tagbar#currenttag('%s','','s')
<
---
>
271c266
< set statusline+=%3*\ %{g:currentTag}\
---
> set statusline+=%3*\ %{tagbar#currenttag('%s','','s')}\
273c268
< set statusline+=%5*\ %=%{g:syntax}
---
> set statusline+=%5*\ %=%{SyntaxItem()}
2014/7/10(Thu) 3:21:03 UTC+9 Bram Moolenaar:
After patch 7.4.362, Processing time is slow under certain conditions.
That condition is 'set hlsearch' and 'set cursorline'.
I've prepared a script file(test603.vim) for verification.
"====================================================
function! T()
call cursor(1, 1)
let t = reltime()
for l in range(1, line('$'))
call cursor(l, 1)
redraw
endfor
echo reltimestr(reltime(t))
endfunction
function! S()
let s = []
for l in range(1, line('$'))
let s += ['\%' . l . 'l\%(abcde\)']
endfor
let @/ = join(s, '\|')
endfunction
:set hlsearch
:set cursorline
:call setline(1, repeat(['abcdef'], 100))
:call S()
:call T()
"====================================================
Exec below.
$ vim -N -u test603.vim
Exec result:
Vim Ver. Elasped time
7.4.131 0.045500
7.4.361 0.046550
7.4.362 1.136427 <-- It is 25 times slower.
7.4.398 1.135489
I think patch 7.4.362 is not enough multi-byte support.
I wrote a patch.
Vim 7.4.404 with my patch elapsed time is 0.053999!
Please check this.
PS
I will send report at a later date about the phenomenon that underline will remain even after the end of Vim in gnome-terminal, mlterm and xterm.
Thank you.
--
Best regards,
Hirohito Higashi
2014/8/16(Sat) 10:14:35 UTC+9 Yukihiro Nakadaira:
> It doesn't work when highlighting multiple characters.
>
> $ vim -u NONE
> :set encoding=utf-8
> :call setline(1, 'aaaaa')
> :hi Test guibg=red ctermbg=red
>
> :call matchaddpos('Test', [[1, 1, 2]])
Thanks for bug report!
I update a patch. (Attached)
2014/8/16(Sat) 21:57:23 UTC+9 Christian Brabandt:
> Can you all please check, if all your issues also occur with the patch
>
> from here:
>
> https://groups.google.com/forum/#!msg/vim_use/V6cRWX4c13E/qh3YCUESU0kJ
Thanks for report.
I will check them soon in my new patch.
2014/8/16(Sat) 22:20:36 UTC+9 h_east:
> > Can you all please check, if all your issues also occur with the patch
> >
> > from here:
> >
> > https://groups.google.com/forum/#!msg/vim_use/V6cRWX4c13E/qh3YCUESU0kJ
>
> Thanks for report.
> I will check them soon in my new patch.
I checked. My patch fixed this problem.