Re: On Tabs and Spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 17 Oct 2007, at 3:17:08 AM, Luke Lu wrote:

But I still haven't seen any compelling arguments against the "all space" case

Overhead!

If you use 8 spaces instead of one tab,
that's using up 7x more space!

Consider:

    # calculates the extra space required to
    # use the given number of spaces/tab.
    size()
    {
        count=`grep -RIo "\`printf \"\t\"\`" . | wc -l`;
        perl -e "print $count*$(($1-1))/1024/1024 . \" MB\n\"";
    }

    Then in in a git working tree:

        size 8; # 1.28701210021973 MB
        size 4; # 0.551576614379883 MB

    In a linux kernel working tree:

        size 8; # 61.4902725219727 MB
        size 4; # 26.3529739379883 MB

Conclusion:

    Yikes!


I hate tabs, but I can't argue with that!

Michael Witten
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux