Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do tab delimited files take less space than comma separated?

I've noticed that the same data, stored in a tab separated file, seems to take less space than when that data is stored in a comma separated file.

My first thought was that tab characters take more space than comma characters, but everything I can find indicates they take the same amount of disk space in UTF/Ascii.

like image 728
Dan O'Boyle Avatar asked Mar 07 '14 16:03

Dan O'Boyle


1 Answers

The CSV version probably has "quotes" around the data fields (just in case they contain commas themselves).

like image 153
Joel Spolsky Avatar answered Sep 22 '22 03:09

Joel Spolsky