Fast Infoset, an international standard (ITU-T Rec. X.891 and ISO/IEC 24824-1), is a binary representation of the information contained in an XML document — the XML Information Set. Fast Infoset documents are generally smaller in size and faster to read and write than equivalent XML documents. The information contained in any valid XML document can be represented in a Fast Infoset document. While all information is preserved when converting an XML document into a Fast Infoset document, the exact formatting of the XML document (such as the ordering of attributes within an element) is lost. Depending on the content of an XML document, the equivalent Fast Infoset document can be one quarter the size of the original XML document, or even less.
Fast Infoset uses the following measures to compress the XML information set and to reduce parsing performance:
The Applied Informatics FastInfoset library uses the same programming interfaces as the XML library from the POCO C++ Libraries. Therefore, it is easy to add Fast Infoset support to an existing XML application using the POCO XML Library.
Fast Infoset parsing performance is between a factor of two to four better than XML parsing performance. The exact performance improvement depends on a number of factors, though. Most important is the content and size of the XML information set. For documents containing lots of character data and only a few elements and attributes, the improvements will be minimal. However, for documents containing lots of elements with short, repeating character data strings in between, improvements both in resulting Fast Infoset document size and parsing speed will be great.