On 3/1/16, 5:03 PM, "jude" <[email protected]> wrote:

>FYI I've heard that about XML too; that it's slower or much slower than
>accessing it's object representation. But that doesn't mean it's too slow.
>In my tests delays have been unnoticeable to the user. I don't think it
>should be avoided.
>
>For example, in my tests of creating a new XML instance with 100 rows it
>takes less than a millisecond in the debugger using the following case:
>
>var xml:XML = new XML(hundredRowsOfXML);
>
>at a 1000 rows it took 7 milliseconds in the debugger or about 2-3 ms at
>runtime.
>
>it may take longer when trying to access or manipulate that data but
>again,
>in my tests, it was much less than a normal human would notice. other
>things have much more of an impact than XML.

FYI, I don't doubt your findings, but in the one test case I analyzed,
there were 100 rows, but each row contained the entire transaction history
for a customer!

<xml>
  <customer id="1">
    <history>
        <transaction />
        <transaction />
        10,000 more...
    </history>
  </customer>

-Alex
        

Reply via email to