APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
132 stars 161 forks source link

User Interface is slow to load a .apsimx file #2770

Closed hol353 closed 5 years ago

hol353 commented 6 years ago

This is caused by deserialising .apsimx file to memory objects. For large .apsimx files (e.g. Tests/Validation/Wheat.apsim) this can take about 10 seconds or more.

The plan is to try and not deserialise the file upfront but instead to deserialise individual models when they are needed by the user as they click on nodes in the TreeView. The .apsimx will be loaded via XmlDocument.Load and the TreeView will be populated from the XmlDocument.

hol430 commented 5 years ago

Duplicate of #3215