-
Notifications
You must be signed in to change notification settings - Fork 5
Grasshopper_Toolkit: Change storing of internalised data to be stored as byte[] rather than Json #625
Copy link
Copy link
Open
Labels
type:featureNew capability or enhancementNew capability or enhancement
Description
Description:
Grasshopper reader/writer supports byte[]. We are already suing the mechanism of going from Bson to byte[] and back in the socket toolkit.
Idea would be to check if there is any benefit in doing the same while storing internalised data in Grasshopper.
This is changing the methods in here:
To instead of writing the Json to string, instead convert to BSON then to byte[] and store that. Also then need to add support for reading this back, keeping the old reader as well to support older documents.
The benefit I can see of this would be two things (hopefully), if non of them are true, this idea can be scrapped:
- Speed. Time to save and open documents with vast amounts of serialised data. Keeping everything binary feels like it should be meaning a performance boost.
- File size. Not sure if this is actually the case, but if it would reduce the file size it would be beneficial, especially as the file size matters quite a bit for the autosave function to not stop your work from running smoothly in definitions with serialised data in them.
This is ofc not a critical issue, as functionality wise it will be the same, just a matter of a potential speed upgrade.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:featureNew capability or enhancementNew capability or enhancement