Does anyone have experience with working with large local XML files?
Let’s say 100.000 lines.
How feasible is it to do that with Flex 4.5 running on AIR?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer is it will work, in theory. But it will work very slow. e4x will traverse but there is nothing API wise that will tell you when an operation on the root’s children will complete. It will give the impression that your app is hanging. There used to be a limitation of 4GB file reference size but I believe things have changed. I’m not sure if AIR is attuned to the difference between 32-bit and 64-bit systems. In the case of 32-bit, there is 2GB limit that when broken a flash.errors.MemoryError will be thrown by the runtime. 100,000 lines of XML is not too bad but it can get pretty bloated if there is all kinds of namespaces, massive text blobs and the opening/closing tags.