microsoft / Microsoft.Shared.Dna.Hash
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 35 units with 325 lines of code in units (49.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (171 lines of code)
    • 4 small units (55 lines of code)
    • 24 very small units (99 lines of code)
0% | 0% | 52% | 16% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 52% | 16% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Microsoft.Shared.Dna.Hash0% | 0% | 52% | 16% | 30%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private unsafe int GetHashCodeBigEndian()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
30 4 2
private unsafe int GetHashCodeLittleEndian()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
26 4 2
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
24 2 3
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
24 2 3
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
24 2 3
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
22 1 1
private unsafe int GetHashCodeBigEndian()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
21 3 2
private static bool Coprime()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
16 4 2
private static long NextFactor()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
15 2 2
public AffineHash()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
12 1 2
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
12 1 1
private static long NextShift()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
9 2 2
private ulong ComputeSmallBlock()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
5 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1
public int GetHashCode()
in Microsoft.Shared.Dna.Hash/AffineHash.cs
4 1 1