Re: Now 376175 lines of code

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Now 376175 lines of code
Date: 2000-10-20 17:11:07
Message-ID: 200010201711.NAA20126@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian writes:
>
> > FYI, it is 376k lines of C code, not bytes.
>
> How did you calculate that? I get this using c_count over all .c and .h
> files:
>
> 20903 lines had comments 25.4 %
> 6603 comments are inline -8.0 %
> 11911 lines were blank 14.5 %
> 7287 lines for preprocessor 8.9 %
> 48716 lines containing code 59.3 %
> 82214 total lines 100.0 %
>
> Surely we don't have 294000 lines of Java, C++, Shell, and Perl???

I just counted lines, not line content. Not sure which is more
meaningful. Our comments are as important as the code, sometimes,
though they do not add functionality to the application. I am not
inclined to inflate numbers, but I am not sure the 59% number is
accurate either.

Opinions?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-20 17:12:42 Re: Now 376175 lines of code
Previous Message Karel Zak 2000-10-20 16:35:24 Re: to_char() dumps core