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.
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.