xml vs binary file ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
kschn
Posts: 13
Joined: Sat Jul 01, 2006 1:16 pm
Location: Vandoeuvre (France)

xml vs binary file ?

Post by kschn »

Hello ^^

We're writing a kind of robot's simulator using irrlicht for all the 3d, and we decided to record simulations video.
It's the same idea of the demos in quake3 for example. I've done this using the built-in xml parser in irrlicht.
And suprise ... it works ... and it's really fast ... much much more than I though it would be.

I was planning to create a binary file format for saving thoses videos ... but seeing how fast is irrlicht's xml handling I now wonder ...

My question may sounds stupid because it depends on how well or bad you design your file format ...

But has anyone ever compared perfs between a file format and xml ?
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

i dont know much about binary file formats but i think xml is of course easier to handle on the other hand the xml-files are bigger afaik

greets,
Halan
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You can actually store XML in a binary format. There are several libraries for doing binary XML for decreased memory footprint and file size.
Post Reply