indentLine icon indicating copy to clipboard operation
indentLine copied to clipboard

poor performance

Open neocodegs opened this issue 11 years ago • 12 comments

            <img data-src="holder.js/260x120" alt="260x120" style="width: 260px; height: 120px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAB4CAYAAAAUn4wEAAAGQElEQVR4Xu3aPUsdWxQG4LEwKiSFTbQTsUwsRfDvp7KRVBFrEVIEsREJ+HHvHJjDODrH96ghQ9aT5nLD8rjXs/Z+3TNx5fLy8qHxhwABAv8LrAgE+4AAgU5AINgLBAjMBQSCzUCAgECwBwgQeCrghmBXECDghmAPECDghmAPECCwQMAjg+1BgIBHBnuAAAGPDPYAAQIeGewBAgQSAe8QEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAKDJobRJIBARCoqSGQBEBgVBk0NokkAgIhERJDYEiAgKhyKC1SSAREAiJkhoCRQQEQpFBa5NAIiAQEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAKDJobRJIBARCoqSGQBEBgVBk0NokkAgIhERJDYEiAgKhyKC1SSAREAiJkhoCRQQEQpFBa5NAIiAQEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAmOCgT09Pm4uLi/nKPn361BweHj5a6eXlZfP9+/fm/v5+9vfP1ZyfnzdnZ2fzr9vd3W329vZe3fHJyUnTft+tra1mf3//0ecka37v9by6EV84KiAQJrY5ukM3XFb/wA/DoKvtH9Th4etqXhsK/c8bBkKy5vdez8TG9s8sRyBMaJS3t7fNt2/fmru7u6Y7uP2D9PXr1+bz58/N8fFxc319/aRmZWWlOTo6atbW1uY13eHtfoKvr6/Pbhurq6tx58MD3w+EZdf8HuuJF65waQGBs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QCIgEBIlNQSKCAiEIoPWJoFEQCAkSmoIFBEQCEUGrU0CiYBASJTUECgiIBCKDFqbBBIBgZAoqSFQREAgFBm0NgkkAgIhUVJDoIiAQCgyaG0SSAQEQqKkhkARAYFQZNDaJJAI/AcghRH8/bWtmwAAAABJRU5ErkJggg==">

neocodegs avatar Oct 22 '13 08:10 neocodegs

I find this plugin slows to a crawl if you just open a normal text file with >1000 words. Becomes unusable in these cases.

svermeulen avatar Oct 27 '13 01:10 svermeulen

this plugin has bad performance for files with LONG lines, this is known issue. maybe you can try a new option "let g:indentLine_faster = 1" or don't use this plugin.

Yggdroot avatar Oct 30 '13 01:10 Yggdroot

I can't speak for @svermeulen but the indentLine_faster option was a huge improvement for me.

jtmkrueger avatar Dec 02 '13 15:12 jtmkrueger

'let g:indentLine_faster = 1' Setting this option had a massive performance increase for me, thanks!

peterfisher avatar Jul 18 '14 09:07 peterfisher

Wow, why isn't this the default? I was about to uninstall the plugin until I found this issue.

seagoj avatar Jul 21 '14 20:07 seagoj

Hi,

unfortunately, I found this issue after tracking down the problem to indentLine.

It really improved the speed. But what means "may bring little issue with it." ?

krid78 avatar Nov 17 '14 15:11 krid78

if let g:indentLine_faster = 1, the syntax of some kinds of file may be broken.

Yggdroot avatar Nov 25 '14 09:11 Yggdroot

Yep, seems like with JavaScript when g:indentLine_faster = 1 then toggling indent line makes all indentations take up one single space instead of (for example) 4 spaces. Also, it breaks the syntax of some types, for example in vim files it makes comments appear un-commented.

trusktr avatar Dec 02 '14 00:12 trusktr

I have a performance problem as well, but is does not seem to match the "long line" case, and g:indentLine_faster = 1 does not help

I am a heavy denite user and I noticed that calling Denite a lot of times while in the same buffer will make everything (scrolling, inserting) slower and slower. However if indentLlines is disabled the problem goes away. I tried adding denite to the ignore files of indentLine but that did not improve things.

Also, the slowness is limited to the "main" buffer and there really is a build up over time. But deleting the buffer and reopening it solves it. Any idea / ways I could investigate further ?

JCavallo avatar Jul 12 '17 10:07 JCavallo

Are you using the latest version? If yes, let g:indentLine_newVersion=0 and have a try. Or replace denite with LeaderF and have a try.

Yggdroot avatar Jul 12 '17 13:07 Yggdroot

@Yggdroot I'm on cdcf505, and indeed setting let g:indentLine_newVersion=0 solves it :+1:

JCavallo avatar Jul 12 '17 14:07 JCavallo

g:indentLine_faster is deprecated now, Please update the plugin, the performance may be better now.

Yggdroot avatar Nov 08 '17 03:11 Yggdroot