44 ms·
> It's great at what it was intended for, as a data interchange format. XML's incredible verbosity is a problem for computers too. I've spent time performance-
by slavik81 8y ago
> It's great at what it was intended for, as a data interchange format.
XML's incredible verbosity is a problem for computers too. I've spent time performance-tuning message parsing code that had no good reason to be slow except that our use of XML bloated the data and decoding time by an order of magnitude or more compared to a binary protocol with a schema.
- zaphar 8y agoIn my experience if you are using XML as a data interchange format and it's slow it's probably because you are using a DOM parser instead of a SAX parser. DOM parsers build a tree that is best used describing a marked up document and much less useful for describing a data structure you might want to serialize or deserialize. I've gotten incredible speedups just by switching to SAX parsing in those cases.