warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

perf: consider storing JSON diffs (instead of full states) #287

Closed ppedziwiatr closed 7 months ago

ppedziwiatr commented 2 years ago

https://jsonpatch.com/ https://www.rfc-editor.org/rfc/rfc7386

Potential libraries: https://github.com/Starcounter-Jack/JSON-Patch (watch for issues!) https://github.com/streamich/json-joy/blob/master/src/json-patch/README.md

BUT - watch out when pruning states ;-)