-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Description of the bug
The replace-in-files is very slow in ST4 when compared to ST3, in a range of 120'' to 2' for the biggest task used for testing.
The delay appears is in the saving of the files opened for the replacement:
- ST3 UI freezes, but finishes very fast
- ST4 UI does not freeze, you can see both the name of each saved file in the status bar, and the change of the "save pending" dot to the "saved" cross in the file's tab or "Files list" sidebar. But it is very slow (>120' for the 7.000 files test).
Steps to reproduce
Replace-in-files \A(.) with \1 in about 7.000 files that are thus opened. Select File - Save all. About 2' in ST3, >120' in ST4 in my setup.
My files 1-byte-character text in Windows 1252 encoding, totalling about 7 million lines
Expected behavior
ST4 as fast as ST3 in saving
Actual behavior
ST4 very slow in comparison, as described above
Sublime Text build number
4126 for ST4, 3211 for ST3
Operating system & version
Tested in Windows 11 and Windows 7
(Linux) Desktop environment and/or window manager
No response
Additional information
The ST3 is my usual one (licensed, updated). The ST4 is a new install. I ran the ST4 tests in normal and safe mode, with no difference.
The tests have been performed in two workstations, a new Windows 11, 16 core, 32Gb. And the previous workstation, Windows 7, 8 core, 16Gb.
In both, same test (ST3 and ST4), and the results are the same (in the Windows 7 machine both tests run slower than in the Windwos 11 one, but ST4 very much slower than ST3 on both).
OpenGL context information
No response