7 ms·
Surprised that nobody has brought up size over the wire yet. XML, by virtue of the fact that it has both opening and closing tags, tends to be more verbose than
by piercebot 6y ago
Surprised that nobody has brought up size over the wire yet. XML, by virtue of the fact that it has both opening and closing tags, tends to be more verbose than other standards. With larger requests, this can translate to hundreds of extra kilobytes transferred. Even for smaller requests, people in bandwidth-constrained environments will probably notice performance improvements when using a more concise standard over XML.
- hobs 6y agoEspecially for repetitive files, I did some testing for an ETL process that was effectively "here's multiple CSVs in an XML file" - break that into multiple csvs (which matched the customer expectations anyway) and got 30x savings in size.
- MereInterest 6y agoHow much of this is effectively making a custom compression scheme? Would you get better compression by using the gzip compression of HTTP?
- hobs 6y agoThat's a fair point, but I am talking just zip compression comparisons, not http actually.
- theandrewbailey 6y agoXML's verbosity is solved with compression. Your webserver is configured to compress text-based formats, right?