jlanzarotta / bufexplorer

BufExplorer Plugin for Vim
BSD 3-Clause "New" or "Revised" License
504 stars 96 forks source link

~2 second delay to get explorer window; files accessed over sshfs #67

Open slisznia opened 6 years ago

slisznia commented 6 years ago

OS: Linux / Ubuntu 16.04

I'm experiencing a delay of about two seconds from the time I'm requesting the explorer to the time the buffer-selection window comes up. This applies only when the files (buffers) are accessed over the sshfs mount (I haven't tried NFS). The number of open files does not matter - i.e. as few as 2 files in the selection window.

When I'm doing :ls the buffers are listed instantaneously.

It seems that there is some sort of file-checking every time the Explorer is requested, which requires a network round-trip.

jlanzarotta commented 6 years ago

Hum... I will check into this... thanks...

jlanzarotta commented 6 years ago

Okay... this is interesting. I believe I can reproduce this on windows also...

slisznia commented 6 years ago

Btw, this isn't something new. I've seen the lag since at least v7.4.2 until now, v7.4.19. Finally got the courage to mention it because the plugin is nothing short of amazing.

jlanzarotta commented 6 years ago

Thanks for using bufexplorer. Sorry for the hassles it has given you right now.

I do not work with networked files very often so I have not seen this before.

Do not hesitate in the future to point out something that is wrong. I may or may not be able to fix it; however, there are lots of people who monitor this plugin, so someone is bound to figure out a solution :)

As of now, it looks like something in the GetBufferInfo() method. When I test the plugin with a networked file, I am seeing timing similar to what you are getting. Not sure what the culprit is thought...