awslabs / s2n-bignum
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 908 files with 249,483 lines of code.
    • 39 very long files (77,183 lines of code)
    • 60 long files (41,709 lines of code)
    • 202 medium size files (65,092 lines of codeclsfd_ftr_w_mp_ins)
    • 303 small files (44,187 lines of code)
    • 304 very small files (21,312 lines of code)
30% | 16% | 26% | 17% | 8%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ml42% | 19% | 26% | 10% | 1%
S4% | 9% | 25% | 34% | 25%
c0% | 100% | 0% | 0% | 0%
yml0% | 0% | 93% | 0% | 6%
h0% | 0% | 0% | 100% | 0%
sed0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
arm/proofs44% | 17% | 26% | 10% | 1%
x86/proofs39% | 19% | 28% | 11% | 1%
common53% | 37% | 4% | 4% | 0%
x86/fastmul23% | 16% | 36% | 20% | 2%
x86_att/fastmul24% | 16% | 36% | 20% | 2%
arm/fastmul19% | 37% | 30% | 12% | 0%
arm/p5210% | 63% | 0% | 14% | 21%
benchmarks0% | 100% | 0% | 0% | 0%
x86/generic0% | 7% | 29% | 30% | 32%
x86_att/generic0% | 7% | 30% | 30% | 32%
arm/generic0% | 6% | 23% | 31% | 37%
x86/p3840% | 0% | 35% | 41% | 23%
x86_att/p3840% | 0% | 35% | 41% | 23%
x86/p5210% | 0% | 49% | 24% | 26%
x86_att/p5210% | 0% | 49% | 24% | 26%
arm/p3840% | 0% | 37% | 35% | 26%
arm/p2560% | 0% | 18% | 43% | 37%
arm/secp256k10% | 0% | 18% | 41% | 39%
codebuild0% | 0% | 93% | 0% | 6%
x86/p2560% | 0% | 0% | 69% | 30%
x86_att/p2560% | 0% | 0% | 69% | 30%
x86/secp256k10% | 0% | 0% | 54% | 45%
x86_att/secp256k10% | 0% | 0% | 54% | 45%
include0% | 0% | 0% | 100% | 0%
x86_att0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ml
bignum_modinv.ml
in arm/proofs
4606 -
ml
bignum_modinv.ml
in x86/proofs
4493 -
ml
bignum_coprime.ml
in arm/proofs
3250 -
ml
bignum_kmul_32_64.ml
in x86/proofs
3085 -
ml
bignum_coprime.ml
in x86/proofs
2955 -
ml
bignum_montifier.ml
in x86/proofs
2951 -
ml
bignum_modifier.ml
in x86/proofs
2948 -
ml
bignum_montifier.ml
in arm/proofs
2719 -
ml
bignum_modifier.ml
in arm/proofs
2715 -
ml
components.ml
in common
2555 -
ml
bignum_amontifier.ml
in x86/proofs
2423 -
ml
x86.ml
in x86/proofs
2371 -
ml
relational.ml
in common
2312 -
ml
bignum_amontifier.ml
in arm/proofs
2226 -
ml
bignum_kmul_32_64.ml
in arm/proofs
2097 -
ml
bignum_ksqr_32_64.ml
in x86/proofs
2013 -
ml
decode.ml
in x86/proofs
1912 -
ml
bignum_emontredc_8n.ml
in x86/proofs
1854 -
ml
bignum_cdiv.ml
in x86/proofs
1824 -
ml
bignum_kmul_16_32.ml
in x86/proofs
1803 -
ml
bignum_cdiv.ml
in arm/proofs
1746 -
ml
bignum_montmul_p521.ml
in arm/proofs
1637 -
ml
bignum_mul_p521.ml
in arm/proofs
1630 -
ml
bignum_montmul_p384.ml
in arm/proofs
1628 -
ml
bignum_ksqr_32_64.ml
in arm/proofs
1461 -
ml
bignum_cmod.ml
in x86/proofs
1293 -
ml
bignum_kmul_16_32.ml
in arm/proofs
1271 -
ml
bignum_montsqr_p521.ml
in arm/proofs
1234 -
ml
bignum_cmod.ml
in arm/proofs
1204 -
ml
bignum_ksqr_16_32.ml
in x86/proofs
1200 -
ml
instruction.ml
in arm/proofs
1160 -
ml
bignum_emontredc_8n.ml
in arm/proofs
1140 -
ml
bignum_sqr_p521.ml
in arm/proofs
1128 -
S
bignum_kmul_32_64.S
in x86/fastmul
1099 -
S
bignum_kmul_32_64.S
in x86_att/fastmul
1098 -
ml
bignum_montmul_p256.ml
in arm/proofs
1082 -
ml
bignum_montredc.ml
in x86/proofs
1036 -
S
bignum_kmul_32_64.S
in arm/fastmul
1013 -
ml
bignum_montsqr_p384.ml
in arm/proofs
1011 -
ml
interval.ml
in common
980 -
ml
misc.ml
in common
955 -
ml
bignum_amontredc.ml
in x86/proofs
947 -
ml
bignum_montredc.ml
in arm/proofs
941 -
ml
bignum_montmul.ml
in x86/proofs
922 -
ml
bignum_montsqr.ml
in x86/proofs
894 -
ml
bignum_montmul_p521.ml
in x86/proofs
889 -
ml
decode.ml
in arm/proofs
865 -
ml
bignum_amontredc.ml
in arm/proofs
858 -
ml
bignum_amontmul.ml
in x86/proofs
851 -
ml
bignum_ksqr_16_32.ml
in arm/proofs
845 -
Files With Most Units (Top 1)
File# lines# units
benchmark.c
in benchmarks
594 12
Files With Long Lines (Top 20)

There are 82 files with lines longer than 120 characters. In total, there are 84 long lines.

File# lines# units# long lines
cloudformation.yml
in codebuild
369 - 2
s2n-bignum.h
in include
191 - 2
ml
bignum_triple_p384_alt.ml
in x86/proofs
232 - 1
ml
bignum_sqr_p521.ml
in x86/proofs
640 - 1
ml
bignum_sub_p521.ml
in x86/proofs
162 - 1
ml
bignum_montsqr_p384_alt.ml
in x86/proofs
638 - 1
ml
bignum_neg_p521.ml
in x86/proofs
142 - 1
ml
bignum_add_p384.ml
in x86/proofs
164 - 1
ml
bignum_sub_p384.ml
in x86/proofs
149 - 1
ml
bignum_demont_p521.ml
in x86/proofs
179 - 1
ml
bignum_mul_p521.ml
in x86/proofs
786 - 1
ml
bignum_mod_n384_6.ml
in x86/proofs
150 - 1
ml
bignum_deamont_p521.ml
in x86/proofs
305 - 1
ml
bignum_double_p521.ml
in x86/proofs
139 - 1
ml
bignum_mod_p384_6.ml
in x86/proofs
142 - 1
ml
bignum_montmul_p384_alt.ml
in x86/proofs
725 - 1
ml
bignum_half_p521.ml
in x86/proofs
178 - 1
ml
bignum_deamont_p384_alt.ml
in x86/proofs
327 - 1
ml
bignum_cmul_p521.ml
in x86/proofs
346 - 1
ml
bignum_mod_n384.ml
in x86/proofs
475 - 1