Open tim-lyon opened 1 week ago
Since the objects and arrays are stored as linear data structures, creating an efficient diff algorithm could be quite complex or potentially slow. I'll look into it when I have more time.
Thanks @ibireme For reference, the nlohmann implementation is only 130 LoC, and for my purpose at least, a similar implementation would be better than none. There are definitely opportunities for optimisation though.
Is your feature request related to a problem? Please describe. I'd love to use yyjson on a project, but I need the ability to create patches from the diff of two JSON documents. Currently I would need to use nlohmann/json specifically for this feature. Thank you for your consideration 🙏
Describe the solution you'd like
Describe alternatives you've considered https://json.nlohmann.me/api/basic_json/diff/