Lazy parsing inf Flex

2018-02-15 Thread Sameer M D
Hi, I wanted to know how to implement lazy parsing of XML in Flex. As of now we are processing a huge XML file, and the parsing is performed using E4X. The browser is getting crashed due to out of memory as the XML which is getting loaded is of huge size. How to implement lazy parsing in Flex a

Re: Lazy parsing inf Flex

2018-02-15 Thread Alex Harui
Hi Sameer, The first question is, are you converting your XML to ActionScript classes? And if so, how? If you are using the Flex XML Decoders, then the following story may help you. Many years ago, a customer was complaining about slow performance when receiving a large XML (actually SOAP) resp

Re: Lazy parsing inf Flex

2018-02-15 Thread Javier Guerrero García
As a rule of thumb, ALWAYS obey what Alex says about Flex :) But, in this case, think also if you could planitize the XML structure (do you really really REALLY need a tree to represent the data *to be displayed*, or is it just because of a quick implementation server-side?) and use a plain-simple

Re: Lazy parsing inf Flex

2018-02-16 Thread Gabe Harbs
That’s really interesting. Currently in Royale, we’re using browser methods to parse XML, so the entire tree is parsed into a DOM tree at once. I wonder if that’s something that we can/should optimize… Harbs > On Feb 15, 2018, at 10:40 PM, Alex Harui wrote: > > It also turns out that Flash la

Re: Lazy parsing inf Flex

2018-02-16 Thread Jeff Dafoe
-Jeff From: Gabe Harbs Sent: Friday, February 16, 2018 5:23 AM To: users@flex.apache.org Subject: Re: Lazy parsing inf Flex That’s really interesting. Currently in Royale, we’re using browser methods to parse XML, so the entire tree is parsed into a DOM tree at once. I wond

Re: Lazy parsing inf Flex

2018-02-16 Thread Alex Harui
I haven't looked at the Royale XML code, but because most everything is replaceable, you can always just grab the String from the server result or wherever you got it and hand it off to a custom parser. The DataBindingExample in Royale uses a lazy JSON parser, just so I could show that lazy parsin