Problem loading huge text file
-
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.
-
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 : noneDesktop2 (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.dllLaptop (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 -
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.
-
I digged a little bit into this problem. It is a performance issue related to the function list.
Steps to reproduce the problem
- start Notepad++ and make sure the function list is closed.
- load a large XML file.
- 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.
-
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.
-
@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.