Jump to content
  • Advertisement

Yeah

Sign in to follow this  
  • entries
    31
  • comments
    17
  • views
    20336

XML

Sign in to follow this  
Aiursrage

270 views

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










Sign in to follow this  


1 Comment


Recommended Comments

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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!