Coefficient data XML, JSON?

Is there such a thing as the coefficient of XML data or something like that.

What I mean by this concept: as XML or JSON before parsing (during transmission) it's still a line that has attributes and their values, the efficiency of something like the ratio of the length (size in bytes) of rows of these data to the length/size of the entire document/rows.

Just from the file exchange some "mega advanced" CMS eyes begin to bleed in terms of this efficiency.
June 14th 19 at 19:12
1 answer
June 14th 19 at 19:14
It all depends on who and how to arrange the data. Since the attributes name a Json/xml developer invents itself, then the proportions may be completely different scale. These formats were created to work with them man, unlike any dbf, etc.
In addition, you can "take" it and package XML, as it did with Microsoft formats docx and xlsx. (This is off topic)
In relation to the proportions of the clearer is such a thing as url-encode - convert binary data into ascii. There is obviously an increase in the volume percent of 30 or more. The comparison with JSON/XML is not very suitable.
You are certainly right about the packaging data for transmission, and that the aforementioned CMS packs for their transmission possible. This of course will shrink 10,000 times repeating the name of the attribute to 1. However, on the receiving side, you still need to unpack and cram it all in memory. Not necessarily all at once, you can use row-based XML readers, but...

The question was purely theoretical - introduced if such a thing at all. Just reading such files prompted the idea. - nikita.Stracke commented on June 14th 19 at 19:17
purely theoretically, it would be interesting to know who such a thing could enter?))) This format was introduced for reading man, but I'd personally would have answered with a question, which in one case makes the coefficient zero, and the second endless:
1. The name of the attribute is huge, and the data - one byte
2. The name attribute is the size of one letter, and the amount of data - the text of war and peace, Tolstoy.
For a more qualitative assessment, you should determine boundary conditions, because otherwise the presence of such a parameter is the average temperature in the hospital, and its value means absolutely nothing.
For example, in physics, there is Just the gravitational constant G. the factor.
Well, as these formats are heaped is the developers need to ask. Yes, they can bloat or is it just legacy code. - ima.Halvorson commented on June 14th 19 at 19:20

Find more questions by tags JSONXML