Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Delay in saving files after latest upgrade

    Help wanted · · · – – – · · ·
    6
    8
    414
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mario Valle
      Mario Valle last edited by

      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!
      mario

      Notepad++ 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

      Mario Valle Alan Kilborn PeterJones 3 Replies Last reply Reply Quote 0
      • Mario Valle
        Mario Valle @Mario Valle last edited by

        It happens also with 7.9.2 64bits

        1 Reply Last reply Reply Quote 0
        • mere-human
          mere-human last edited by

          Could you provide any sample files?

          1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            Alan Kilborn @Mario Valle last edited by

            @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.

            1 Reply Last reply Reply Quote 1
            • guy038
              guy038 last edited by

              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

              1 Reply Last reply Reply Quote 1
              • PeterJones
                PeterJones @Mario Valle last edited by

                @Mario-Valle ,

                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 like Z: or whatever was chosen for you)? Because I have never seen a small file take 2+ seconds to save when saving locally.

                1 Reply Last reply Reply Quote 3
                • mere-human
                  mere-human last edited by

                  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.

                  1 Reply Last reply Reply Quote 2
                  • pnedev
                    pnedev last edited by pnedev

                    @Mario-Valle ,

                    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.

                    1 Reply Last reply Reply Quote 5
                    • Referenced by  Terry R Terry R 
                    • First post
                      Last post
                    Copyright © 2014 NodeBB Forums | Contributors