What Happens When EmEditor Passes Large Lines of Regular Expressions

Asked 1 years ago, Updated 1 years ago, 86 views

Thank you for your help.
The tens of thousands of lines of regular expression macros just before connecting to the web API are unusually heavy.
I get frozen and stop at the web API. What is the possible cause?

This phenomenon is resolved and becomes crisp when you remove the regular expression code and replace it simply, reduce the lines of the macro, or remove the inclusion of this macro and test.
The image is at the end of the heavy event.
This is the most common line in the current test stage.
EmEditor is up to date.
Thank you for your cooperation.

Enter a description of the image here

emeditor

2022-09-30 19:24

1 Answers

After continuous search/replacement with a large number of complex regular expressions, the highlighting of the search string may be significantly slow.As a result, the subsequent movement may feel slow.Possible workarounds include:

Continuous replacement should be as simple as possible by reducing the number of replacements without using regular expressions.

On the View page of the Properties for all settings menu, set the search color to 0.

If you only want the search color to be 0 while running the macro, run the following three lines at the beginning of the macro:

cfg= document.Config;
cfg.Display.SearchColors=0;
cfg.Save();

In addition, run the following three lines at the end of the macro:

cfg= document.Config;
cfg.Display.SearchColors=1;
cfg.Save();

However, if the macro is interrupted due to an error, it will not automatically revert.


2022-09-30 19:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.