IUnusedRegionTag has performance issues.

SyntaxEditor for WPF Forum

Posted 3 years ago by Sunshine - Appeon
Version: 21.1.1
Platform: .NET 5.0
Environment: Windows 10 (64-bit)

I implemented a class and inherited CollectionTagger<IUnusedRegionTag>.

When the data is updated, I use this method to refresh all the tags.


However, calling the Add method will cause the entire UI to freeze for a period of time. The pause time is affected by the number of tags added.

Comments (1)

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA


When you use a CollectionTagger, you should wrap multiple Clear() and Add() calls with a batch to improve performance:

using (var batch = tagger.CreateBatch()) {
  // Zero or more Add() calls here

See if that helps.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.