Delay in saving files after latest upgrade
-
Before latest upgrade (7.9.1 32bits) pushing the save icon or ctrl-S immediately saved the file and changed the tab floppy-disk icon from red to gray.
After upgrade this takes almost 2 seconds, even for minuscule files. This happens at least with markdown and javascript files. Even launching np++ with -noPlugin exhibits the same delay.
What happened? What could I do to investigate (and remove) this delay? Yes, it is a minuscule problem, but annoying.
Thanks for looking!
marioNotepad++ v7.9.1 (32-bit)
Build time : Nov 2 2020 - 01:03:56
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2009
OS Build : 19042.685
Current ANSI codepage : 1252
Plugins : ComparePlugin.dll DSpellCheck.dll HexEditor.dll HTMLTag_unicode.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFavorites.dll NppFTP.dll NPPJSONViewer.dll NppSaveAsAdmin.dll NppTextFX.dll XMLTools.dll _CustomizeToolbar.dll -
It happens also with 7.9.2 64bits
-
Could you provide any sample files?
-
@Mario-Valle said in Delay in saving files after latest upgrade:
Plugins : ComparePlugin.dll DSpellCheck.dll HexEditor.dll HTMLTag_unicode.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFavorites.dll NppFTP.dll NPPJSONViewer.dll NppSaveAsAdmin.dll NppTextFX.dll XMLTools.dll _CustomizeToolbar.dll
My comment is: HUGE plugin list! Remove all of them and add them back in one-by-one, and see if it makes a difference at any point.
-
Hi, @mario-valle, @alan-kilborn and All
Alan, note, however, that @mario-valle said :
Even launching np++ with -noPlugin exhibits the same delay.
I didn’t notice a significant delay while saving files with my portable
v7.9.2
version of Notepad++ !BR
guy038
-
Are you by chance accessing files on a network share – whether via their UNC path like
\\machine\path\to\file
or via a mapped network drive (with a fake drive letter likeZ:
or whatever was chosen for you)? Because I have never seen a small file take 2+ seconds to save when saving locally. -
Also, I thought that it might be when you have several hard drives.
For example, I have a Windows with programs on a fast SSD drive and a slower HDD drive.
When I save a file to HDD drive, it takes some time to do that. But usually, it happens only on the first access to that drive after if it went inactive. -
To avoid a potential data corruption in case of sudden power loss, Notepad++ since version 7.9.1 writes files directly to disk on save - no operating system RAM caching is used. This ensures that your files are really safely written to disk when you save them but writing to disk is slower than writing to RAM buffer.
Now if your “disk” is slow in write speed then that might be the reason you are seeing such delay. By “disk” here I mean the non-volatile (persistent) media where your files are located.
Mapped network drives, SD cards, USB drives are examples of medias (“disks”) that are relatively slow on write. -