Advertisement Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  


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:


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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!