Re: XML was RE: RE: A portable preferences library

"Alen Ladavac" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
> Damn, I'm gonna fire that ranging scout!
:) 

>   double foo[large_number];
>   ...
>   read (h, foo, sizeof (foo[0]) * large_number) 
> 
> Is necessarily going to be cheaper than parsing an XML structure of
> large_number doubles.  The only question is whether the added expense is
> worth it on some level.  If you're shaving instructions...

Look, remember one thing: when doing things like this, always think about 
the bottleneck. Here, media speed is your bottleneck. Whatever you do, you 
can never be faster than it. Now, if you pipeline it well, you are free to 
use as much CPU time as media needs to stream it from disk. So the XML 
parser might as well have exact same speed as binary solution! 

The question is: is there some XML parser that can be fast enough to pull 
that trick, when run on some current CPU (and which), reading from some 
current media (and which)? Is there? 

And remember that it would need to be put in chain with an unzipper, for a 
fair race against a binary reader with unzipper, both running against the 
same file. 

But for example purposes, I'll accept an unzipper+XMLparser pair getting 
near media streaming speed, as a proof that XML doesn't suck. ;) 

Alen 

>> People started to argue that the verboseness of the format doesn't
>> hinder its performance. I say, ok, it might be possible, but show me
>> the numbers. Didn't see any yet. :/
> 
> Frankly and numbers you see need to be treated with a lot of salt, even
> the ones I post.  It is a simple enough thing to test with whatever
> parser you pick.   
> 
> -- 
> J C Lawrence
> ---------(*)                Satan, oscillate my metallic sonatas.
> [email protected]               He lived as a devil, eh?
> http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live. 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Gamedevlists-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=557
 



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.