Question regarding serialization/parsing performance of Fast Infoset
I have a question regarding performance (for parsing/serialization) of Fast Infoset over XML.
Fast Infoset is used to encode XML documents in binary format. The Fast Infoset document are smaller in size in comparison to XML document.
In order to compare the performance for serialization/parsing, let's consider the following cases:
Case1: Application produces a XML document
Application ---> XML
Case2: Application produces a Fast Infoset document
Application ---> XML ---> Fast Infoset document
Time required for serialization of Fast Infoset document = Time required for serialization of XML + Time required of converting XML document to Fast Infoset document
Thus time required for serialization/parsing of Fast Infoset document would always be more than time required for serialization/parsing of XML document
Am I missing something?