IUnusedRegionTag has performance issues.

SyntaxEditor for WPF Forum

Posted 1 year 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 1 year 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 (v22.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.