awslabs / aws-cppwrapper-lattigo
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 186 units with 1,207 lines of code in units (70.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (93 lines of code)
    • 31 small units (379 lines of code)
    • 152 very small units (735 lines of code)
0% | 0% | 7% | 31% | 60%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 9% | 40% | 49%
cpp0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/gowrapper/ckks0% | 0% | 10% | 41% | 47%
src/gowrapper/marshal0% | 0% | 0% | 25% | 74%
src/latticpp/ckks0% | 0% | 0% | 0% | 100%
src/latticpp/marshal0% | 0% | 0% | 0% | 100%
src/gowrapper0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func lattigo_genBootstrappingKey()
in src/gowrapper/ckks/keygen.go
39 6 6
func lattigo_newParametersFromLogModuli()
in src/gowrapper/ckks/params.go
29 4 6
func lattigo_newParameters()
in src/gowrapper/ckks/params.go
25 5 6
func lattigo_rotateHoisted()
in src/gowrapper/ckks/evaluator.go
18 3 5
func()
in src/gowrapper/marshal/storage.go
17 4 1
func lattigo_genRotationKeysForRotations()
in src/gowrapper/ckks/keygen.go
15 2 4
func lattigo_decode()
in src/gowrapper/ckks/encoder.go
15 2 4
func lattigo_newBootstrapper()
in src/gowrapper/ckks/bootstrap.go
15 2 3
func lattigo_rescaleMany()
in src/gowrapper/ckks/evaluator.go
15 3 5
func lattigo_getDefaultClassicalParams()
in src/gowrapper/ckks/params.go
14 3 1
func lattigo_getDefaultPQParams()
in src/gowrapper/ckks/params.go
14 3 1
func lattigo_marshalBinaryBootstrapParameters()
in src/gowrapper/ckks/marshaler.go
13 3 3
func lattigo_rescale()
in src/gowrapper/ckks/evaluator.go
12 2 4
func lattigo_genKeyPair()
in src/gowrapper/ckks/keygen.go
11 1 1
func lattigo_genKeyPairSparse()
in src/gowrapper/ckks/keygen.go
11 1 2
func lattigo_params()
in src/gowrapper/ckks/bootstrap_params.go
11 2 1
func CDoubleVecToGoComplex()
in src/gowrapper/ckks/encoder.go
11 2 2
func lattigo_encodeNTTAtLvlNew()
in src/gowrapper/ckks/encoder.go
11 1 6
func lattigo_precisionStats()
in src/gowrapper/ckks/precision.go
11 1 5
func lattigo_mulRelinNew()
in src/gowrapper/ckks/evaluator.go
11 1 3