FindReplace.ReplaceAll() performs bad for large scripts

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Sergej Petrovski
Avatar
Hello,

FindReplace.ReplaceAll() takes very long time to replace all occurrences of some frequent substring.

We tested very large script file (about 3MB, with >20000 lines), and ReplaceAll took about 30 seconds on machine with intel i7 950 3GHz processor.

Since it is very large script, we turned off intellipropmt and some visualization and editing features in advance.

Additionally, UndoRedo.Undo() also performs bad afterwards.

The version we use is 4.0.0287.

Thanks,
Sergej

[Modified at 01/27/2011 06:09 AM]

[Modified at 01/27/2011 06:11 AM]

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Sergej,

We are aware of that issue and unfortunately it is something due to how the document change model is set up and how views respond to changes, and not possible to fix without a major rewrite of a lot of functionality.

The good news is that it is something we really focused on when we created the newer object model in the WPF/Silverlight SyntaxEditor, which can replace all and undo much faster since we have it wrapped up in a single transaction instead of one per change unit. We hope to port the newer design back to WinForms once we have implemented all feature areas found in WinForms that aren't yet in WPF/Silverlight.


Actipro Software Support

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.