Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

While developer developing software, it is very important to keep an eye on the performance. Catel itself does perform very well, but there are some caveats that you should be aware of. If you have the feeling that the the application is laggy or slow, or if you want to make sure to squeeze the best performance out of Catel, consider taking a closer look at the checklist below is very important.

Tip

Use the ApiCop feature to get a detailed advisory report on your software

...

Therefore, it is important to disable any call to LogManager.AddDebugListener when releasing an application or while performance testing.

Disable event subscriptions of child values for ModelBase

To be able to (re)validate when a child object changes, the ModelBase subscribes to all change notifications (of all childs) by default. This can be disabled by using the following code:

Code Block
ModelBase.DefaultDisableEventSubscriptionsOfChildValuesValue = false;

Disabling validation during activities where validation is not required

...