diagram.model.toJSON() This method is slow

When i use diagram.model.toJSON(),it takes at least 3 seconds.
json string length is 4983kb
diagram.model.nodeDataArray length about 200.
How can it be faster?

That’s 5 megabytes for 200 nodes – perhaps you could remove or simplify some of the data properties?

A post was split to a new topic: Model.toJson doesn’t work