Skip to content

[Feature request] Enhance large files with syntax highlighting performance #15952

@softmgr

Description

@softmgr

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Steps to Reproduce Performance Issues in Notepad++:

  1. Open a large file (e.g., an HTML file larger than 100MB) in Notepad++ with syntax highlighting enabled.
  2. Press Ctrl + End. At this point, Notepad++ becomes unresponsive and takes a significant amount of time to recover.
  3. Reopen the large file, press Ctrl + G, input a very large line number, and press Enter. Again, Notepad++ becomes unresponsive and takes a long time to respond.
  4. Move the cursor to the end of the large file. Then, create a new file or open another file. Finally, switch back to the tab containing the large file. Notepad++ takes a significant amount of time to respond.

Fix Description:
@donho I have optimized the behavior for the above scenarios. The attached source code includes my modifications, based on the latest master branch as of today.

notepad-plus-plus-master[20241215].zip

Describe the solution you'd like.

I have optimized the behavior for the above scenarios.

Debug Information

Notepad++ v8.7.4   (64-bit)
Build time : Dec  4 2024 - 23:50:05
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
DirectWrite : OFF
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 22H2
OS Build : 19045.5131
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)

Anything else?

Relevant links:
#15653
#15926

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions