MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

MrV2K
Explainer in simple terms.
Reged: 04/23/04
Posts: 65
Loc: SE, England
Send PM
Re: Command Line options...
10/02/12 11:50 PM


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.


"I See Dead People!"

easyEmu







Entire thread
Subject Posted by Posted on
* Command Line options... azrael11 09/26/12 08:56 PM
. * Re: Command Line options... etabeta  09/27/12 10:54 AM
. * Re: Command Line options... azrael11  09/27/12 07:01 PM
. * Re: Command Line options... MrV2K  10/02/12 11:50 PM
. * Re: Command Line options... azrael11  10/03/12 08:27 PM
. * Re: Command Line options... MrV2K  10/04/12 07:44 PM
. * Re: Command Line options... azrael11  10/05/12 06:46 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 100 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2680