aws / dcv-color-primitives
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 39 units with 1,491 lines of code in units (14.6% of code).
    • 0 very long units (0 lines of code)
    • 18 long units (1,320 lines of code)
    • 2 medium size units (72 lines of code)
    • 2 small units (29 lines of code)
    • 17 very small units (70 lines of code)
0% | 88% | 4% | 1% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 89% | 4% | 1% | 3%
c0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/convert_image0% | 94% | 3% | <1% | 1%
src0% | 0% | 29% | 20% | 50%
c_tests0% | 0% | 0% | 0% | 100%
benches0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
fn lrgb_i420()
in src/convert_image/sse2.rs
86 17 9
fn lrgb_i420()
in src/convert_image/avx2.rs
86 17 9
fn lrgb_nv12()
in src/convert_image/sse2.rs
85 18 10
fn lrgb_nv12()
in src/convert_image/avx2.rs
85 18 10
fn i420_bgra_lrgb()
in src/convert_image/sse2.rs
82 17 7
fn i420_bgra_lrgb()
in src/convert_image/avx2.rs
82 17 7
fn lrgb_i444()
in src/convert_image/sse2.rs
80 17 9
fn lrgb_i444()
in src/convert_image/avx2.rs
80 17 9
fn i444_bgra_lrgb()
in src/convert_image/sse2.rs
79 17 7
fn i444_bgra_lrgb()
in src/convert_image/avx2.rs
79 17 7
fn nv12_bgra_lrgb()
in src/convert_image/sse2.rs
77 17 8
fn nv12_bgra_lrgb()
in src/convert_image/avx2.rs
77 17 8
fn bgra_to_rgb()
in src/convert_image/x86.rs
63 4 6
fn lrgb_nv12()
in src/convert_image/x86.rs
61 13 10
fn lrgb_i420()
in src/convert_image/x86.rs
57 11 9
fn nv12_bgra_lrgb()
in src/convert_image/x86.rs
55 12 8
fn lrgb_i444()
in src/convert_image/x86.rs
55 11 9
fn i420_bgra_lrgb()
in src/convert_image/x86.rs
51 11 7
fn i444_bgra_lrgb()
in src/convert_image/x86.rs
49 11 7
23 1 2