Difference between revisions of "Myths"

Jump to navigation Jump to search
2 bytes removed ,  18:46, 6 July 2015
Line 16: Line 16:
The fact: XML is just as fast as JSON, and therefore XMPP pays no penalty.
The fact: XML is just as fast as JSON, and therefore XMPP pays no penalty.


JSON, in particular, is often heralded as being better in all possible ways than XML. In reality, while JSON can be constructed in slightly fewer bytes, that's really it's only advantage. You may think this is a key advantage for mobile, in which case hold on there for Myth Three.
JSON, in particular, is often heralded as being better in all possible ways than XML. In reality, while JSON can be constructed in slightly fewer bytes, that's really its only advantage. You may think this is a key advantage for mobile, in which case hold on there for Myth Three.


In "typical" parsers, XML and JSON perform more or less identically in practice. It's worth noting that there are a number of high-performance XML parsers, but comparatively few high-performance JSON parsers, too.
In "typical" parsers, XML and JSON perform more or less identically in practice. It's worth noting that there are a number of high-performance XML parsers, but comparatively few high-performance JSON parsers, too.


But even ignoring the high performance, specialist end, XML still holds its own. Consider these findings, for example: http://balisage.net/Proceedings/vol10/html/Lee01/BalisageVol10-Lee01.html
But even ignoring the high performance, specialist end, XML still holds its own. Consider these findings, for example: http://balisage.net/Proceedings/vol10/html/Lee01/BalisageVol10-Lee01.html


== Myth Two: The baseline is minimal, therefore XMPP is useless. ==
== Myth Two: The baseline is minimal, therefore XMPP is useless. ==
41

edits

Navigation menu