This diff tool is soooooooooo cool,if provide a diff based on protobuffers also,it will be the best thing i ever met on github
jeyhan opened this issue · 4 comments
Thanks! That's nice to hear. 😃
What exactly do you have in mind for protobuf?
I want to update some protobuf file from server to mobile device(such as android) by http, with the purpose of keeping the PB file on client into the lastest version, I have to push the whole file to client every time it has change(even the change is very small), the pb file is large as 50KB, it is a waste of bandwidth I think..
So, object diff with a version management will be a better solution from this situation. I can pull a patch pb file from server according to local pb file version, and apply patch to local pb file.
MyPbMessage msg = new MyPbMessage();// which is old version
MyPatchMessageFromServer patch = getFromServer();
msg.applyPatch(patch);// then I got a new version pb object !
too much words, just described my pain point from pb. I think pb has lots of similarity to object with getter/setter, maybe we can consider it.
^^
Hello it is very nice API, i have a proposition, it is to add annotation to ignore field comparison it is like @JsonIgnore, Thanks
I have been attempting similar with Avro (another self-describing data format), however I must admit I'm a little lost in the weeds when it comes to implementing the Introspector class and the various other things it defers to. A tutorial here or slightly more detailed docstrings could go a long way. I tried to look at the tests for examples but I'm not very familiar with groovy.