I saw you asking this question the other day on EFNet. Apologies if I can't be of much help, but, intuitively the first explanation (and only explanation) that I can think of is that you are incurring some sort of overhead due to the higher size and complexity of the XML class. How this could possibly translate to a difference of 5-10ms... I don't know.

Maybe it wouldn't be a bad idea to run several tests with different sized text files and try to narrow or widen the deviance?

Either way, it's nice to know this.

Joseph
('Formless' on EFNet/#flash/#actionscript)

Andreas Rønning wrote:
I don't run them concurrently. They're entirely separate tests. Earlier i tried concurrent tests where yes, flipping the order (loadvars/xml-xml/loadvars) did make a difference.

The bottom line is, currently, for loading data such as raw text, loadVars.onData is slightly faster than xml.onData. It doesn't bug me. I'm just surprised there's a 5-10ms difference.

- Andreas

Mike wrote:
But if you run the XML test first, and the LoadVars test just "loads"
the cached file....
--
T. Michael Keesey

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Kremens
Sent: Tuesday, June 27, 2006 5:39 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Re: loadvars vs xml onData

Why would that matter?  I would assume that the loadvars and XML
objects would handle cached or non cached files the same way, no?

Jim Kremens

On 6/26/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

You're loading in a non-cached version each time right?

var myXml = new XML();
for (var a = 0; a < 30; a++) {
       myXml.load(path + "?x=" + a);
}


BLITZ | Steven Sacks - 310-551-0200 x209



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to