Re: 10% drop in code line count in PG 17

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: 10% drop in code line count in PG 17
Date: 2025-11-20 13:49:51
Message-ID: CAJ7c6TO3QQfcLsJZY0p_EXnfWJd_8M+aKW_3_H_2c0A2kBDS5w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> > While working on a talk, I studied the number of code line changes in
> > each major release, and found PG 17 surprisingly reduced code line count
> > by 10%. To get the code line count, I used /pgtop/src/tools/codelines,
> > which runs:
>
> [..]
> Overall, there is a 4% increase according to this tool. What is
> convenient about `cloc` - you can count only what you want, e.g. code
> without comments, etc.

Oops, I didn't notice that you were comparing PG16 and PG17. Still,
the result with `cloc` is similar, +4% approximately. Apologies for
the noise.

--
Best regards,
Aleksander Alekseev

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2025-11-20 14:01:49 Re: Remove useless casts to (void *)
Previous Message Aleksander Alekseev 2025-11-20 13:44:04 Re: 10% drop in code line count in PG 17