Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Performance when load a diagram (Read 2262 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Performance when load a diagram
Sep 8th, 2016 at 10:40pm
Print Post  
Because of some reasons, our team try to use our own format to storage diagram, instead of default format which you guys developed. Our format probably is like below:
<OurDiagram>
   <Nodes>
        <Node Caption="aaa" Width="300" Height="100" ...>
       ...
   </Nodes>
</OurDiagram>

So we need to load xml file first then get all and every node data to create node shape and append it to a diagram dynamically.  My question is on one same diagram maybe there are more than 10 thousand shapes. The loading performance is as same as the way which using default format file to load a diagram?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Performance when load a diagram
Reply #1 - Sep 9th, 2016 at 11:28am
Print Post  
Quote:
The loading performance is as same as the way which using default format file to load a diagram?


Your load times could be even faster if storing fewer properties and using serial XML API (XmlReader class) rather than DOM API (XmlDocument class). For tips on how to add objects dynamically as fast as possible, check the StressTest sample project.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: Performance when load a diagram
Reply #2 - Sep 9th, 2016 at 5:13pm
Print Post  
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint