Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool

Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool

Kevin Lv8

Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool

November 18, 2017 at 6:49 am #22626

Patrick C

Participant

some delay about 1sec in execution

Strange – on my PC with Emeditor version 17.2.4 the macro executes without any delay.
And its not that sluggish – just tested commenting 128’000 lines of a 1096 kB file.
Adding comments takes <0.1s, but removing comments takes 1.7 seconds for 128’000 lines.
Removing comments is slow because the algorithm checks each line in order to properly cover special cases.

is there a way to reduce this execution delay?

Try running the macro without using the shortcut. In some cases the choice of shortcut key can lead to an execution delay

all macros suffer from execution delay?

None of mine do (i.e. at least on both my PC and my laptop).

Is there a way to make them a part of the edior code?

You can ask Yutaka, but as I hinted, making a comment on/off behaviour which suits all users is not as straightforward as it initially may seem.
Perhaps writing your own compiled DLL to use as a plug-in might also speed up the code. So far doing this isn’t necessary for me.

Also read:

https://techidaily.com
  • Title: Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool
  • Author: Kevin
  • Created at : 2024-10-08 05:07:39
  • Updated at : 2024-10-13 20:27:25
  • Link: https://win-outstanding.techidaily.com/efficient-text-editing-with-emeditor-the-ultimate-code-and-notepad-tool/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool