Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Objects or Arrays

Status
Not open for further replies.
Dec 24, 2001
857
GB
I have an app that uses a 2d array which is populated from data in an XML file. The XML file is about 600kb and to sort it seems to take a while. Normally I wouldn't have a problem with this, but the previous version of the app I'm creating used exactly the same XML file and the same code yet read and sorted the information much much quicker. Oh, and its reading it from the same place.

The only difference that I can see is that the new app uses a 2d array whereas the first app used an array with each item turned into an object so for example:

First app array example - details[0].name
New app array example - details[0][0]

Is Flash quicker at sorting objects than arrays? Do you have any suggestions for speeding it up?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top