Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a bin­ary-en­coded seri­al­iz­a­tion mechanism

I was ready to develop an internal communication protocol, and tried to use XML or JSON as a serialization mechanism, but the text mode is less efficient, and lead to a large volume of packets. So, I hope to use a binary serialization encoding mechanism. However, I'm looking for a long time, could not find cross-language, Delphi-supported mechanism.

like image 722
Leo Avatar asked Mar 30 '12 01:03

Leo


1 Answers

Google Protocol Buffers and MessagePack are the most efficient schemes around, unfortunately there very few ports to Delphi at this moment.

  • Google Protocol Buffers http://sourceforge.net/projects/protobuf-delphi/

If you are willing to implement for yourself (messagepack is really simple), I suggest you hack write() and parse() functions of existing libraries like SuperObject.

You will end up with a very decent library without much effort.

like image 155
arthurprs Avatar answered Sep 25 '22 22:09

arthurprs