« Fixing the Error: “ASN1 bad tag value met”! | Main | Handle null values in MySQL Query »

Google Protocol Buffer faster than XML

- Jagadish. M

Do you think XML is the only fastest way for serializing the structured data?
Then go ahead and read this. I am sure you will have a different opinion at the end of this discussion.


In 2001 Google had developed its own data format, called Protocol Buffers. Google’s documentation says that, “protocol buffers were initially developed at Google to deal with an index server request/response protocol.


Google is using Protocol Buffers for its internal Remote Procedure Calls, or RPC, protocols and file formats.


Using Google protocol buffer you define how you want your data to be structured once, then you can use special generated source code to simply write and read your structured data to and from a variety of data streams and using a variety of languages.


Google protocol buffer is 3 to 10 times smaller and 20 to 100 times faster than XML for serializing structured data.


See the Google Developer Guide:
Protocol Buffer Basics: Java

(The author,  Jagadish. M, is a Software Engineer at Binary Spectrum)

TrackBack

TrackBack URL for this entry:
http://binaryspectrum.com/geeksatwork-mt/mt-tb.fcgi/40

Comments

I recently came across your blog and have been learning along. I thought I would leave my first remark. I don’t know what to say except that I have enjoyed reading. Fine blog. I will keep visiting this blog very often.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)