Community
    • Login

    Problem loading huge text file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 6.2k Views 1 Watching
    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.
    • NippurDeLagashN Offline
      NippurDeLagash
      last edited by NippurDeLagash

      Hello,

      I recently upgraded to Notepad++ version 7.4.2, and have a problem loading huge files.

      Huge means, in this case, a text file with a million lines and a size of 67 MB. Notepad++ does not crash but it is not usable. It constantly consumes 25% of CPU time on a quad processor machine, memory usage is always increasing, and was using more than 500 MB when I killed the program.

      I tried also the -noPlugin option, but it did not help.

      Notepad++ version 6.6.6 opens the same file almost instantly.

      1 Reply Last reply Reply Quote 0
      • NippurDeLagashN Offline
        NippurDeLagash
        last edited by

        Yesterday I tried Notepad++ 7.4.2 on another two computers, and both of them loaded the troublesome file normally. Yes, it takes a few seconds to go all the way down to the last line of the file, but that’s understandable. There must be something wrong with the first computer, I suppose.

        Here is the Debug Info copied from the three computers:

        Desktop1 (KO)

        Notepad++ v7.4.2 (32-bit)
        Build time : Jun 18 2017 - 23:34:19
        Path : C:\Program Files (x86)\Notepad++\notepad++.exe
        Admin mode : OFF
        Local Conf mode : OFF
        OS : Windows 7 (64-bit)
        Plugins : none

        Desktop2 (OK)

        Notepad++ v7.4.2 (32-bit)
        Build time : Jun 18 2017 - 23:34:19
        Path : C:\Program Files (x86)\Notepad++\notepad++.exe
        Admin mode : OFF
        Local Conf mode : OFF
        OS : Windows 7 (64-bit)
        Plugins : DSpellCheck2.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

        Laptop (OK)

        Notepad++ v7.4.2 (32-bit)
        Build time : Jun 18 2017 - 23:34:19
        Path : C:\Users\User1\Desktop\npp.7.4.2.bin\notepad++.exe
        Admin mode : OFF
        Local Conf mode : ON
        OS : Windows 7 (64-bit)
        Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

        1 Reply Last reply Reply Quote 0
        • NippurDeLagashN Offline
          NippurDeLagash
          last edited by

          Solved!

          The solution was to delete everything under folder C:\Users\Nippur\AppData\Roaming\Notepad++, and then let Notepad++ recreate it with brand new settings.

          1 Reply Last reply Reply Quote 1
          • NippurDeLagashN Offline
            NippurDeLagash
            last edited by NippurDeLagash

            I digged a little bit into this problem. It is a performance issue related to the function list.

            Steps to reproduce the problem

            1. start Notepad++ and make sure the function list is closed.
            2. load a large XML file.
            3. open the function list (menu View, then Function List).

            Loading a file whose size is 18 MB and has 220.000 lines, the function list appears after five or six minutes (*), and the memory used by Notepad++ (as reported by Windows 7 task manager) was:
            step1: 10 MB
            step 2: 50 MB (after loading 18 MB of text).
            step 3: peaked at about 194 MB, then stabilized at 169 MB after the function list was displayed.

            (*) the PC has an Intel core i5-4460 @ 3.2 GHz.

            1 Reply Last reply Reply Quote 0
            • chcgC Offline
              chcg
              last edited by

              Which type of file do you open?
              Functionlist uses regex to find functions/classes and therefore parses the complete file. Use case therefore are source code files and 67MB would be quite hugh for this.

              See https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/functionList.xml for the currently parsed file types by functionlist.

              NippurDeLagashN 1 Reply Last reply Reply Quote 0
              • NippurDeLagashN Offline
                NippurDeLagash @chcg
                last edited by

                @chcg
                It is an XML file. It is actually a report generated by a disk usage tool, which I run on a folder having about 80.000 files, and it lists each file with full path, size, etc.
                This report has a size of “only” 18 MB, but Notepad++ uses 67 MB to load it.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors