awslabs / aws-checksums
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 30 units with 448 lines of code in units (26.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (51 lines of code)
    • 7 medium size units (255 lines of code)
    • 5 small units (67 lines of code)
    • 17 very small units (75 lines of code)
0% | 11% | 56% | 14% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 11% | 56% | 14% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source/intel/asm0% | 25% | 69% | 0% | 4%
source/arm0% | 0% | 100% | 0% | 0%
source/intel/visualc0% | 0% | 90% | 0% | 9%
source0% | 0% | 15% | 45% | 39%
source/generic0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static inline uint32_t s_crc32c_sse42_clmul_1024()
in source/intel/asm/crc32c_sse42_asm.c
51 1 2
uint32_t aws_checksums_crc32c_hw()
in source/intel/asm/crc32c_sse42_asm.c
50 11 3
static inline uint32_t s_crc32c_sse42_clmul_3072()
in source/intel/asm/crc32c_sse42_asm.c
46 1 2
static inline uint32_t s_crc32c_sse42_clmul_256()
in source/intel/asm/crc32c_sse42_asm.c
43 1 2
uint32_t aws_checksums_crc32c_hw()
in source/arm/crc32c_arm.c
33 6 3
uint32_t aws_checksums_crc32_hw()
in source/arm/crc32c_arm.c
33 6 3
uint32_t aws_checksums_crc32c_hw()
in source/intel/visualc/visualc_crc32c_sse42.c
28 6 3
22 2 4
16 2 4
15 3 4
12 2 4
12 4 3
12 4 3
10 3 3
10 4 3
7 2 4
4 1 3
4 1 3
4 1 3
4 1 3