Jump to content
  • Advertisement
Sign in to follow this  
cowboygun

Text File or Binary file for Names and Home Address

This topic is 2894 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am developing an application to send out people's names and their home address via the network. As you see, most of them are ASCII characters. Now I have 3 options: either send out an ASCII file over the network, or a binary file, or a compressed binary file. I believe the file size will be smaller when using binary file, and will be the smallest by using compressed binary file.

My question is, how many percentage of gain in general should I expect by using binary file than using ACSII file to save the pure text like name and address?How many percentage of gain in general should I expect by using compressed binary file (say gzip is used for this case) than using ACSII file to save the pure text like name and address? Any idea?

Thank you.




Share this post


Link to post
Share on other sites
Advertisement
42%

Give or take.

The rest depends on statistical properties of data being sent as well as overheads involved.

Share this post


Link to post
Share on other sites
Why not stick them in a text file and find out for yourself? I found this in about 30 seconds on google. Some more here.

What would your "binary file" contain? Surely a compressed "text file" is the best possible "binary file"? (Assuming you value bandwidth over computation expenditure).

Also, be very careful of assuming ASCII. Especially for something as arbitrary as names and addresses.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!