[Home] [By Thread] [By Date] [Recent Entries]

  • From: Tyler Baker <tyler@i...>
  • To: Julian Reschke <reschke@m...>
  • Date: Sun, 26 Sep 1999 04:04:08 -0400

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member