Skip to content

Commit

Permalink
stats: struct
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jun 23, 2023
1 parent edfaeed commit d6f1e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def structures():
lines.append(line)
table_compute_diff(lines)
render_table(lines)
paragraph('Count also private structures like "_PyCFrame" '
'and structures with names not starting with Py like "_frozen".')


def render_page():
Expand Down
6 changes: 4 additions & 2 deletions doc/stats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Python Limited API CPython API Internal API Total
3.10 10,396 (51%) 4,616 (22%) 5,572 (27%) 20,584
3.11 9,235 (37%) 5,499 (22%) 10,047 (41%) 24,781
3.12 9,598 (29%) 5,903 (18%) 17,618 (53%) 33,119
3.13 9,482 (29%) 5,916 (18%) 17,660 (53%) 33,058
3.13 9,484 (29%) 5,912 (18%) 17,664 (53%) 33,060
====== ============= =========== ============ ======

File Numbers
Expand Down Expand Up @@ -56,7 +56,7 @@ Python Public Private Internal Total
3.10 902 (-35) 406 (+1) 116 (+6) 1,424 (-28)
3.11 931 (+29) 352 (-54) 177 (+61) 1,460 (+36)
3.12 966 (+35) 378 (+26) 178 (+1) 1,522 (+62)
3.13 948 (-18) 375 (-3) 174 (-4) 1,497 (-25)
3.13 950 (-16) 373 (-5) 174 (-4) 1,497 (-25)
====== ========== ========== ========= ============

Since Python 3.9, Python is now built with ``-fvisibility=hidden`` to avoid
Expand Down Expand Up @@ -123,3 +123,5 @@ Python Limited API CPython API Internal API Total
3.13 18 (same) 88 (+4) 168 (-2) 274 (+2)
====== =========== =========== ============ =========

Count also private structures like "_PyCFrame" and structures with names not starting with Py like "_frozen".

0 comments on commit d6f1e2b

Please sign in to comment.