XML

posted in Yeah
Published March 02, 2008
Advertisement
I am working with xml data.

1)Save all data or just data that is not default?
Saving all data has the benefit of not requiring conversions (for example if the defaults ever changed) but at the cost of space

2) Write object desc def or just write all the data in the object desc
Saving all the data in the object desc creates a lot of waste (duplicative data), but it means that there is less synchronization if the object data ever changes.


For example:
                                        


versus
        
Previous Entry Hohum
Next Entry 2D brawlers
0 likes 1 comments

Comments

johnhattan
Hard drive space is about twenty cents per gigabyte nowadays. Unless you're targeting Windows 95/98 machines, don't worry about your config files being a little fatter than they could be.

After all, you're using XML which is about the least space-efficient file format in existence. You've already made that decision, so there's no point in trying to save a few bytes now.
March 02, 2008 05:06 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement