Skip to content

[Feature request] Make styler/theme/langs update-from-model more efficient #17290

@pryrt

Description

@pryrt

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Per the conversation on c64b81e, the update-from-model algorithm could be made more efficient.

Currently, v8.8.9 adds about 30-60ms each load compared to v8.8.8, because it has to parse the entire model file before determining whether or not to update the active stylers/theme or langs file from the model version.

Describe the solution you'd like.

By using file metadata to determine the date of the file, instead of parsing the entire model file just to get the attribute, up to 60ms could be saved every load of the application.

Debug Information

Notepad++ v8.8.9   (64-bit)
Build time: Dec  8 2025 - 00:04:32
Scintilla/Lexilla included: 5.5.8/5.4.6
Boost Regex included: 1_85
Path: C:\usr\local\apps\npp\npp.8.8.9.portable.x64\notepad++.exe
Command Line: 
Admin mode: OFF
Local Conf mode: ON
Cloud Config: OFF
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: OFF
Display Info:
    primary monitor: 1920x1080, scaling 100%
    visible monitors count: 1
    installed Display Class adapters: 
        0000: Description - Intel(R) UHD Graphics 770
        0000: DriverVersion - 32.0.101.7026
OS Name: Windows 11 Home (64-bit)
OS Version: 24H2
OS Build: 26100.7171
Current ANSI codepage: 1252
Plugins: 
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)

Anything else?

(assigning to myself)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions