explo icon indicating copy to clipboard operation
explo copied to clipboard

De/serialize render tree data more efficiently

Open blaugold opened this issue 4 years ago • 0 comments

Currently, render tree data is serialized as a recursive JSON structure. This is expensive to both serialize and deserialize.

Instead, each RenderObjectData should be serialized and appended to a string, separated by a delimiter. Each RenderObjectData needs to be serialized with a unique ID, which is used to refer to it in child lists. With this, the tree structure can be reconstructed during deserialization.

blaugold avatar Dec 14 '21 13:12 blaugold