novifinancial / ed25519-speccheck
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 51 units with 837 lines of code in units (53.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (64 lines of code)
    • 11 medium size units (404 lines of code)
    • 15 small units (225 lines of code)
    • 24 very small units (144 lines of code)
0% | 7% | 48% | 26% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 11% | 35% | 31% | 21%
c0% | 0% | 83% | 7% | 8%
go0% | 0% | 100% | 0% | 0%
java0% | 0% | 38% | 43% | 18%
swift0% | 0% | 0% | 100% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 11% | 35% | 31% | 21%
scripts/ref100% | 0% | 100% | 0% | 0%
scripts/libsodium0% | 0% | 100% | 0% | 0%
scripts/ed25519-signal-donna0% | 0% | 60% | 23% | 16%
scripts/openssl_30% | 0% | 79% | 0% | 20%
scripts/go0% | 0% | 100% | 0% | 0%
scripts/ed25519-java/src/main/java0% | 0% | 38% | 43% | 18%
scripts/ed25519-ios0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
64 1 0
49 7 1
49 7 1
46 2 0
43 2 0
43 1 0
39 1 0
36 3 1
27 3 2
25 2 0
24 4 0
23 5 1
19 2 3
19 2 0
19 2 0
19 2 0
18 2 0
16 2 3
15 2 3
14 2 0
14 2 4
13 1 3
13 3 0
12 2 0
12 1 1
11 2 4
11 2 0
10 1 2
9 1 3
9 1 3
9 1 1
8 1 4
8 1 4
8 1 4
7 2 1
7 2 3
7 2 1
7 2 0
6 1 0
6 1 1
5 1 3
5 1 0
5 1 1
5 1 1
5 1 1
3 1 1
3 1 2
3 1 2
3 1 1
3 1 2