1

Why binary files serialization is faster to serialize and capture relatively small amount of disk-space in compare to text files serialization?

Yair Nevet
  • 12,725
  • 14
  • 66
  • 108
  • 1) Text format only uses a subset of the storage capacity of each byte (some character codes are reserved). 2) binary serialization can often take place in the actual binary format that the variable has natively, saving the need to convert to and from text. – 500 - Internal Server Error Apr 23 '16 at 20:21
  • - also, if you try to actually take a look at some examples of data serialized as XML, the overhead should be fairly obvious. Depending on the data types involved, it is not uncommon to see the size of the XML meta data (tags, attribute names, and so on) dwarf the actual payload size by factors of 3 or more. – 500 - Internal Server Error Apr 23 '16 at 20:31

0 Answers0