The MindFusion Forums
Flow Diagramming Components >> WPF >> Diagram.IsLicensed takes a long time to execute
https://mindfusion.eu/Forum/YaBB.pl?num=1530804584

Message started by milosa on Jul 5th, 2018 at 3:29pm

Title: Diagram.IsLicensed takes a long time to execute
Post by milosa on Jul 5th, 2018 at 3:29pm
Hello,

I have the large diagram, 210 ContainerNodes, each having ~10 ShapeNodes and ~10 links.

When I add the new node on the diagram it is very slow for me so I was doing the profiling of that execution and the output from the profiler I send as an attachment.

It shows that 80% of the time is spent in the ArrangeOverride method where 74% is spent in the IsLicensed getter.

Do you have an idea how to resolve this?

Best regards,
Milos


mindfusion_islicensed.png ( 75 KB | 108 Downloads )

Title: Re: Diagram.IsLicensed takes a long time to execute
Post by Slavcho on Jul 5th, 2018 at 6:10pm
This build caches some results and should avoid the attribute calls shown in the chart -
https://mindfusion.eu/_temp/wpfdiag_attr.zip

Regards,
Slavcho
Mindfusion

Title: Re: Diagram.IsLicensed takes a long time to execute
Post by milosa on Jul 6th, 2018 at 1:50pm
Hello Slavcho,

This actually seem to bring a drastic improvement for the performance in the big diagrams.

When can we get the proper release (with a nuget package) including the fix?

Best regards,
Milos

Title: Re: Diagram.IsLicensed takes a long time to execute
Post by Slavcho on Jul 9th, 2018 at 11:51am
Hi,

We won't be releasing soon but will try to publish this build as a nuget update.

Regards,
Slavcho

Title: Re: Diagram.IsLicensed takes a long time to execute
Post by milosa on Jul 11th, 2018 at 6:25am
So if you can write here when the new nuget package is available it would be great.

Thanks!

Title: Re: Diagram.IsLicensed takes a long time to execute
Post by Slavcho on Jul 13th, 2018 at 8:22am
Hi,

It's now on https://www.nuget.org/packages/MindFusion.Diagramming.Wpf/

Regards,
Slavcho

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.