> I wrote some code in purebasic to do this for a front end I'm writing. What it does > is... > > 1. If theres no data it generate the xml file and compresses it down to 15mb to save > space. > 2. Once theres a data file it loads the data. > 3. Uncompresses the xml in memory > 4. Recursively parses the xml nodes and attributes pulling out the data I need into a > 2D array. > > and all in less than 5 seconds. > > It took some head banging but I very pleased with the result. At the moment the whole > front end loads in less than 15 seconds including loading, parsing, sorting, > filtering and checking the availability of 26000 plus entries.
That is freaking amazing 5 sec... ouaou only in my dreams... The best result i get is about 3 minutes....
Ok i make the 3 and the 4 ... But how can you make the 1... this is impressive.. But the generation of the mame.xml file took about 1.5 minutes...
I really take a look about your code... i know "basic" and pascal is not to far...
|