@Alexander-Anisimov said in Notepad++ lags when text files are on FTP:
Yes, that’s about right. But to be perfectly clear - that happens less frequently than when you Ctrl+S save a file that is in your Notepad++ list, that’s / are stored on that mounted disk via WebDAV - that’s when you definitely get a momentarily lag.
I’ve tested what you’ve proposed - still, when you actually save the file - it makes entire Notepad++ freeze, which may seem as a mild nuissance at first, but over time in your day-to-day usage - it becomes annoying.
If I’m following what you wrote correctly, disabling file status auto-detection has worked to solve the problem described in your original post; but a different, similar behavior, locking up for a long time when you save a file, is still present.
I did some searching, but I wasn’t able to determine whether Windows uses a “write-behind cache” (that might not be exactly the correct term in this use) for WebDAV. If (as I’m guessing) it does not, then Windows is not telling Notepad++ that it can proceed until the file has been completely uploaded to the server.
Notepad++ can’t work around that.
There are other ways, using third-party software, to mount a WebDAV location as a drive; I believe some of those implement write-behind caching. The inevitable cost of this is that when Notepad++ says the file has been saved, it would only mean it has been saved to the local cache. If uploading fails, you would either get that message later, from the application that does the mounting, or you wouldn’t get it at all (it would just be in an error log somewhere).
This article might give you some ideas:
Performance Testing WebDAV Clients
We probably cannot help you any further here.