I have a diagram that contains about 70 tables with links between most of them. I serialize the diagram as a binary file and save it somewhere. When I reload the diagram from the binary file, it takes about 2-3 minutes. Once the diagram is loaded, scrolling is VERY slow too. Is there anything I can do to speed things up?
Below is sample code. ModelUtils.LoadBinaryDataIntoModel just calls modelMain.Open passing into the binary stream.
TryMe.modelMain.Suspend()
ModelUtils.LoadBinaryDataIntoModel(
Me.modelMain, aData)Catch ex As Exception
If Debugger.IsAttached Then Debugger.Break()Me.modelMain.Clear()
FinallyMe.modelMain.Resume()
End Try