RFC: Attributes and XML-RPC

Tyler Baker tyler at infinet.com
Sun Sep 26 10:05:58 BST 1999


Julian Reschke wrote:

>  I find this way surprising. Yes, it's clear that opening and closing
> tags compress well, but I would still have expected the attribute
> version to be smaller...

Each quote (2 of them), comma, equal, and attribute name take up 5-10
bytes for each attribute when mapped to a symbol table, while the
element style takes up 2-4 bytes for the start tag and the end tag. The
exact number of bytes used for each attribute or element is dependent on
the compression algorithm and the number of different attribute or
element names used. So it is no surprise to me that using GZIP produces
a compressed attribute file that is larger (-:

Tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990926/0edb7f80/attachment.htm


More information about the Xml-dev mailing list