Sign in to follow this  

Text File or Binary file for Names and Home Address

This topic is 2645 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
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

This topic is 2645 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.

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

Sign in to follow this