Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Improve File Change Notification for slow medium

Open ProgerXP opened this issue 3 years ago • 2 comments
trafficstars

Since file monitoring is on the main thread (WM_TIMER), slow FindFirstFile() makes the program almost non-responsive. This is common with network shares outside of the local network. A simple solution is to disable monitoring or increase polling interval, but a better approach would be to move monitoring to another thread. I have briefly checked the code and it seems easy to convert WatchTimerProc() into a thread function.

Related to #241.

ProgerXP avatar May 07 '22 18:05 ProgerXP

Done.

cshnik avatar Aug 17 '22 15:08 cshnik

I have started to see notifications when file is saved because of Save On Lose Focus (#164). This is extremely rare but I am confident there is a bug in the implementation.

Update: #164 might be causing this more often but this definitely occurs even with it disabled.

ProgerXP avatar Sep 22 '22 14:09 ProgerXP

Fixed.

cshnik avatar Nov 10 '22 13:11 cshnik