If your VOs are static you can always try to serialize them to disk in AMF format and embed them using mimeType="application/octet-stream" similar to what is described here[1]. This way you could easily deserialize those objects without the conversion penalty. To easily update those files, you could use any AMF enabled application to generate them, like BlazeDS, AmfPHP, ColdFusion, FluorineFX, etc and then embed them at compile time. I'm not sure but I think it would also be possible to load them at runtime but didn't try it.
1) http://archive.darronschall.com/weblog/2009/09/using-servicecapture-to-capture-data-for-mock-service-creation.html On 22 July 2013 17:22, Raj U. Shaikh <[email protected]> wrote: > Hi, > I am facing performance issue with application which plays with xml's > > Problem is: > > 1. There are too many heavy xml embedded in flex modules swf. > > 2. After load of these module we start parsing that xml's in to > VO's. (Value Object a simple as3 object) > > 3. We use these VO's at different part of application as and when > necessary. > While, Profiling application using 'flash builder profiler' I encountered > that step 2(parsing xml's and converting it to Vo's) is taking more time > and responsible for many loitering of xml objects. > > Solution is: > > 1. I want a utility which will generate a swf which will have as3 > VO's converted from xml's. > > 2. Application will load that swf file and start using that VO's > directly. > That means I wanted a readymade VO's so that my parsing time will be > reduced. > > Implementation? > So how can I embed as3 objects instead of xml's into swf/modules? > Or > How can I convert xml's into as3 VO's at compile time? (I am ready with > compile time overhead than runtime) > > Clue is: > In BlazeDS, We can convert Java objects into as3 objects. > So similarly can we convert xml's into as3 or xml's into java objects then > into as3 objects? > > > > Thanks & Regards, > Raj Shaikh > Senior Software Engineer > > Majesco Mastek - P&C Division > Mastek Millennium Center, A-7, Millennium Business Park, Sector 1 Off > Thane Belapur Road, Mahape Navi Mumbai - 400701 > (T) 91 22 27781272 Extn - 5250 | Mobile: 9970395965 | Fax: 91 22 27781332 > | www.mastek.com<http://www.mastek.com/> > > ||yatha dristi, tatha sristi|| > > MASTEK LTD. > In the US, we're called MAJESCOMASTEK > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Opinions expressed in this e-mail are those of the individual and not that > of Mastek Limited, unless specifically indicated to that effect. Mastek > Limited does not accept any responsibility or liability for it. This e-mail > and attachments (if any) transmitted with it are confidential and/or > privileged and solely for the use of the intended person or entity to which > it is addressed. Any review, re-transmission, dissemination or other use of > or taking of any action in reliance upon this information by persons or > entities other than the intended recipient is prohibited. This e-mail and > its attachments have been scanned for the presence of computer viruses. It > is the responsibility of the recipient to run the virus check on e-mails > and attachments before opening them. If you have received this e-mail in > error, kindly delete this e-mail from desktop and server. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -- João Fernandes
