Re: [Flashcoders] Re: loadvars vs xml onData
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 -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ 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
Re: [Flashcoders] Re: loadvars vs xml onData
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
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 -- Jim Kremens ___ 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
RE: [Flashcoders] Re: loadvars vs xml onData
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
Re: [Flashcoders] Re: loadvars vs xml onData
But if you run the XML test first, and the LoadVars test just loads the cached file That's a good point! Jim Kremens On 6/27/06, Mike [EMAIL PROTECTED] 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 -- Jim Kremens ___ 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
Re: [Flashcoders] Re: loadvars vs xml onData
Its called first and is faster because its invoked as soon as you have data, and before you actually parse or process the data. onData is always gonna be called first. onLoad is called when the call has totally completed, there fore at the end of the process, whereas onData is at the beginning. Hi, I actually don´t know, but probably make more sense if the onLoad method would be faster because it should be easier to parse the LoadVars source rather than the xml one. But no idea why the onData method is faster... Sorry for not helping too much :S Bye On 6/26/06, Andreas Rønning [EMAIL PROTECTED] wrote: Anyone know why loadvars.onData gets results quicker than xml.onData? Did a bunch of average tests and xml is noticably slower (5-10 ms) - Andreas ___ 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 -- Juan Delgado - Zárate http://www.zarate.tv ___ 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
Re: [Flashcoders] Re: loadvars vs xml onData
Hi Stacey, Check out the question: Anyone know why loadvars.onData gets results quicker than xml.onData He's comparing loadvars.onData with xml.onData - apples and apples, not loadvars.onData with xml.onLoad. It's a good question! I'd like to know Jim Kremens ___ 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
Re: [Flashcoders] Re: loadvars vs xml onData
Caught on skimming Intersting question now, I'm wondering which class has a higher overhead file size wise... Hi Stacey, Check out the question: Anyone know why loadvars.onData gets results quicker than xml.onData He's comparing loadvars.onData with xml.onData - apples and apples, not loadvars.onData with xml.onLoad. It's a good question! I'd like to know Jim Kremens ___ 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
RE: [Flashcoders] Re: loadvars vs xml onData
That is really weird. One question--are the files being loaded the same size? (Or, better yet, the same file.) -- Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Kremens Sent: Monday, June 26, 2006 1:17 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Re: loadvars vs xml onData Hi Stacey, Check out the question: Anyone know why loadvars.onData gets results quicker than xml.onData He's comparing loadvars.onData with xml.onData - apples and apples, not loadvars.onData with xml.onLoad. It's a good question! I'd like to know Jim Kremens ___ 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
Re: [Flashcoders] Re: loadvars vs xml onData
The tests i ran were something like this: create an xml object add a callback for its onData 30 times, get the same file from the server and get an average of the time between the load() call and the onData invocation. repeat for loadvars compare results. I've done tests against a server that might as well be called local, but on average loadvars gave me around 20 ms, while xml gave me between 25 and 30. I know loadvars extends object, wheras xml extends xmlNode which again extends object, so i don't know.. I always thought all classes that load content and have an onData event inherit the same functionality but override on the onLoad... - Andreas Mike wrote: That is really weird. One question--are the files being loaded the same size? (Or, better yet, the same file.) -- Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Kremens Sent: Monday, June 26, 2006 1:17 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Re: loadvars vs xml onData Hi Stacey, Check out the question: Anyone know why loadvars.onData gets results quicker than xml.onData He's comparing loadvars.onData with xml.onData - apples and apples, not loadvars.onData with xml.onLoad. It's a good question! I'd like to know Jim Kremens ___ 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
RE: [Flashcoders] Re: loadvars vs xml onData
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