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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 10% drop in code line count in PG 17
Дата
Msg-id 1646642.1763583693@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 10% drop in code line count in PG 17  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: 10% drop in code line count in PG 17
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> 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:

>     find . -name '*.[chyl]' | xargs cat| wc -l

> Any ideas on the cause of this decrease?

My first thought was that it had to do with the conversion of
src/backend/nodes/ to be largely auto-generated code.  If you
are using codelines against just what is in git, that would look
like a decrease.  However, I see that came in during v16 not v17,
so that's not the explanation.  I'm betting it's some similar
effect though: code getting moved out of the set of files that
will match '*.[chyl]'.

Also ... are you in fact counting only what is in git?  Because
I get different answers:

$ git clean -dfxq
$ git checkout REL_17_0
HEAD is now at d7ec59a63d7 Stamp 17.0.
$ src/tools/codelines
 1664472
$ git checkout REL_16_0
HEAD is now at c372fbbd8e9 Doc: fix release date in release-16.sgml.
$ src/tools/codelines
 1595197

            regards, tom lane



В списке pgsql-hackers по дате отправления: