Re: [flexcoders] Best way to load XML file

2009-12-11 Thread Flex Killer
Thanks Jim for sharing the link with me . This solved my problem . The actual 
file size was 1.68MB and after compressing it is just 236 KB . The time it is 
taking now is just 7 seconds( before compression it was taking around 45 
seconds) . Once again thanks for your suggestion

Nathan , thanks for your suggestion . I am thinking using Jim suggestion and 
yours together to reduce time to seconds . 

Regards
Kiran







From: Jim Hayes 
To: flexcoders@yahoogroups.com
Sent: Thu, December 10, 2009 5:34:39 AM
Subject: RE: [flexcoders] Best way to load XML file

   
You can try compressing the xml file first and decompressing it when loaded - 
I've used this to good effect and see something like a 10x reduction in the 
filesize -
This blog covers the technique 
http://www.ghostwir e.com/blog/ archives/ as3-saving- xml-as-binary/

-Original Message-
From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On 
Behalf Of Flex Killer
Sent: 09 December 2009 11:45
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Best way to load XML file

  
Dear All,

I have a 2 MB XML file locally and if I try to import that file using



It is loading all the data at compile time  ( In fact flex builder is throwing 
memory exception)

I loaded the same file using HTTPService and It is taking significant amount of 
time to load the data in production environment . 

Could some body suggest a better way to load this? ( I don't have an option of 
loading this to database and reading it from there)

Regards
Kiran
.

 _ _ _ _ _ _
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
 _ _ _ _ _ _

 


  

RE: [flexcoders] Best way to load XML file

2009-12-10 Thread Jim Hayes
You can try compressing the xml file first and decompressing it when loaded - 
I've used this to good effect and see something like a 10x reduction in the 
filesize -
This blog covers the technique 
http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flex Killer
Sent: 09 December 2009 11:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to load XML file

  
Dear All,

I have a 2 MB XML file locally and if I try to import that file using



It is loading all the data at compile time  ( In fact flex builder is throwing 
memory exception)

I loaded the same file using HTTPService and It is taking significant amount of 
time to load the data in production environment . 

Could some body suggest a better way to load this? ( I don't have an option of 
loading this to database and reading it from there)

Regards
Kiran
.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__