[Home] [By Thread] [By Date] [Recent Entries]
Glad to see this is an interesting topic. Dr. Kay is correct that these initial attempts at measurement may be artificial. What we need to do is: 1. Agree what is a "typical" XML document -- in particular, the average / maximum number of elements, the average depth of the document (max. length of a chain of descendent nodes starting from the document node), average/maximum depth of an element, average/maximum number of children per element, average/maximum number of attributes per element. 2. Select such an "average document" and use it in all measurements 3. Transform this document to contain a minimum number of elements by converting any element that has no element children and no attributes to an attribute of its parent. 4. Measure the occupied memory of each of the documents built in step 2, and step 3 above. 5. Compare the results of these measurements. And certainly, the results may vary largely depending on the specific implementations. These results will be useful for developers using one or more different XML (DOM), XPath, XSLT, XQuery, ... processors. Thanks, Dimitre On Sun, Jan 16, 2022 at 12:48 PM Michael Kay <mike@s...> wrote:
Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- To avoid situations in which you might make mistakes may be the biggest mistake of all ------------------------------------ Quality means doing it right when no one is looking. ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play ------------------------------------- To achieve the impossible dream, try going to sleep. ------------------------------------- Facts do not cease to exist because they are ignored. ------------------------------------- Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :) ------------------------------------- Sanity is madness put to good use. ------------------------------------- I finally figured out the only reason to be alive is to enjoy it.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



