Skip to content

Navigation Menu

Sign in
Sign up

Number of code lines in different branches #1042

njzjz started this conversation in Show and tell
Discussion options

branch r0.9 r0.10 r0.11 r0.12 r1.0 r1.1 r1.2 r1.3 devel
C/C++ header 10736 10779 10729 10733 10820 10873 11481 12010 12560
C++ 7179 7167 7264 7479 9301 10934 12367 12035 26961
Python 2233 2479 2793 2838 6873 7425 9263 9667 18910
Markdown 443 574 578 1015 902 946 957 1061 2248
CMake 380 380 421 440 507 554 674 673 1091
JSON 94 96 99 99 1042 1259 1315 1305 1549
Shell 90 90 97 97 108 108 108 108 225
C 61 61 61 61 61 61 61 61 61
YAML 0 0 0 0 71 80 98 108 312
TOML 0 0 0 0 2 2 2 2 2
CUDA 0 0 0 0 0 938 1188 1089 4488
diff 0 0 0 0 0 20 20 20 20
rst 0 0 0 0 0 0 0 689 1097
DOS Batch 0 0 0 0 0 0 0 26 26
CSS 0 0 0 0 0 0 0 3 3
make 0 0 0 0 0 0 0 9 9
ini 0 0 0 0 0 0 0 0 11
Total 21216 21626 22042 22762 29687 33200 37534 39015 69630

Blank and comment lines are not counted.

You must be logged in to vote

Replies: 4 comments

Comment options

njzjz
Feb 9, 2024
Maintainer Author

Results on Feb 8, 2024, using count loc (comments and blanks are removed):
r0.9: 13751
r1.0: 22854
r1.1: 25482
r1.2: 29677
r1.3: 31490
v2.0.0: 60944
v2.1.0: 66495
v2.2.0: 120271
r2: 155019
devel: 177580

You must be logged in to vote
0 replies
Comment options

Update as of 2026年06月29日 (UTC). I recounted the current release/maintenance refs locally with cloc 2.06; the code column below excludes blank and comment lines. The previous updates used Count LOC, so please treat these numbers as a new baseline rather than a byte-for-byte comparable continuation.

ref total files Python C++ C/C++ header YAML JSON Markdown CUDA CMake Shell TOML
v2.2.11 163782 847 65078 51605 22876 1186 5343 4787 3505 1536 363 267
r2 163792 847 65084 51605 22876 1190 5343 4787 3505 1536 363 267
v3.0.3 273674 1341 143721 58757 24229 19287 7378 5935 3505 1757 401 368
r3.0 273674 1341 143721 58757 24229 19287 7378 5935 3505 1757 401 368
v3.1.3 362473 1680 221115 63021 24756 21450 9126 7835 3812 2094 411 461
v3.2.0b0 442869 1863 284639 70017 25818 27542 10213 9619 3812 2087 472 472
master 470533 1970 313080 67324 27141 27541 10289 9919 3851 2105 478 471

A few quick observations:

  • The v3 series is substantially larger than the r2/v2.2 line: v3.0.3 is about 1.67x v2.2.11, and current master is about 2.87x v2.2.11 by this cloc count.
  • Most of the growth is in Python. By master, Python accounts for about 313k / 471k source lines, reflecting the broader Python-side infrastructure, tests, backends, and workflows.
  • C++/headers continue to grow, but much more moderately than Python; CUDA remains comparatively stable in this count.

Command pattern used:

git checkout <ref>
npx --yes cloc . --json --exclude-dir=.git,node_modules --timeout 20

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)

You must be logged in to vote
0 replies
Comment options

Update as of 2026年08月11日 (Asia/Shanghai). I recounted the current master ref with cloc 2.06; the totals and language columns below exclude blank and comment lines. At the time of counting, master pointed to bc902daf7.

ref total files Python C++ C/C++ header YAML JSON Markdown CUDA CMake Shell TOML
master 590390 2384 409900 77574 29291 31428 10371 10997 8627 2363 799 500

Compared with the 2026年06月29日 update, the total increased from 470,533 to 590,390: +119,857 lines (+25.5%). Python accounted for 96,820 lines of that increase.

Command pattern used:

git fetch origin master
git archive origin/master | tar -x -C <temp-dir>
perl cloc-2.06.pl <temp-dir> --exclude-dir=.git,node_modules --timeout 20

Coding agent: Codex
Codex version: codex-cli 0.144.6
Model: gpt-5.6-sol
Reasoning effort: xhigh

You must be logged in to vote
0 replies
Comment options

Update as of 2026年08月19日 (UTC). I counted the released v3.2.0 tag (commit 8cfd46e) with cloc 2.06; totals and language columns below exclude blank and comment lines.

ref total files Python C++ C/C++ header YAML JSON Markdown CUDA CMake Shell TOML
v3.2.0 616478 2438 426707 79876 30773 31428 10548 12511 12265 2374 806 500

Compared with the 2026年06月29日 count of v3.2.0b0: total increased from 442,869 to 616,478: +173,609 lines (+39.2%). Python accounted for 142,068 lines of that increase; C++ grew by 9,859 lines, CUDA by 8,453 lines, YAML by 3,886 lines.

Command pattern used:

git fetch origin tag v3.2.0
git archive v3.2.0 | tar -x -C <temp-dir>
npx --yes cloc <temp-dir> --exclude-dir=.git,node_modules --timeout 20

Coding agent: opencode
opencode version: 1.18.18
Model: ustc/deepseek-v4-flash
Reasoning effort: max

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /