golang / image
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 78 files with 148,945 lines of code.
    • 19 very long files (136,156 lines of code)
    • 5 long files (2,997 lines of code)
    • 20 medium size files (6,891 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,988 lines of code)
    • 22 very small files (913 lines of code)
91% | 2% | 4% | 1% | <1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go91% | 1% | 4% | 1% | <1%
s0% | 100% | 0% | 0% | 0%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
font98% | <1% | 1% | <1% | <1%
draw95% | 0% | 4% | 0% | <1%
vector0% | 44% | 36% | 17% | <1%
tiff0% | 44% | 26% | 20% | 8%
ccitt0% | 33% | 61% | 0% | 4%
vp8l0% | 54% | 25% | 20% | 0%
vp80% | 0% | 79% | 8% | 12%
colornames0% | 0% | 75% | 24% | <1%
math0% | 0% | 93% | 0% | 6%
bmp0% | 0% | 58% | 41% | 0%
webp0% | 0% | 99% | 0% | <1%
cmd0% | 0% | 0% | 100% | 0%
riff0% | 0% | 0% | 100% | 0%
example0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
data.go
in font/gofont/gomonobolditalic
11055 -
data.go
in font/gofont/gomonoitalic
10850 -
data.go
in font/gofont/gomonobold
10525 -
data.go
in font/gofont/gomono
10266 -
data.go
in font/gofont/gomediumitalic
9718 -
data.go
in font/gofont/gobolditalic
9424 -
data.go
in font/gofont/goitalic
9190 -
data.go
in font/gofont/gomedium
9184 -
data.go
in font/gofont/gobold
9039 -
data.go
in font/gofont/gosmallcapsitalic
8786 -
data.go
in font/gofont/goregular
8773 -
data.go
in font/gofont/gosmallcaps
8354 -
impl.go
in draw
6069 83
regular8x16.go
in font/inconsolata
4974 -
bold8x16.go
in font/inconsolata
4974 -
sfnt.go
in font/sfnt
1358 55
gen.go
in draw
1279 28
data.go
in font/basicfont
1256 -
postscript.go
in font/sfnt
1082 47
s
acc_amd64.s
in vector
849 -
reader.go
in tiff
608 14
reader.go
in ccitt
519 21
decode.go
in vp8l
513 11
plan9font.go
in font/plan9font
508 29
gen.go
in ccitt
482 11
predfunc.go
in vp8
481 25
table.go
in ccitt
473 -
truetype.go
in font/sfnt
451 9
table.go
in colornames
449 -
gpos.go
in font/sfnt
413 13
gen.go
in vector
400 1
token.go
in vp8
366 1
writer.go
in tiff
363 12
scale.go
in draw
349 15
reconstruct.go
in vp8
314 7
gen.go
in font/sfnt
305 1
vector.go
in vector
300 22
decode.go
in vp8
296 10
cmap.go
in font/sfnt
251 6
fixed.go
in math/fixed
248 36
transform.go
in vp8l
246 9
writer.go
in bmp
245 5
filter.go
in vp8
232 9
decode.go
in webp
227 6
huffman.go
in vp8l
191 5
pred.go
in vp8
187 3
font.go
in font
187 10
main.go
in cmd/webp-manual-test
186 6
reader.go
in bmp
176 9
reader.go
in tiff/lzw
176 6
Files With Most Units (Top 20)
File# lines# units
impl.go
in draw
6069 83
sfnt.go
in font/sfnt
1358 55
postscript.go
in font/sfnt
1082 47
fixed.go
in math/fixed
248 36
plan9font.go
in font/plan9font
508 29
gen.go
in draw
1279 28
predfunc.go
in vp8
481 25
vector.go
in vector
300 22
reader.go
in ccitt
519 21
scale.go
in draw
349 15
reader.go
in tiff
608 14
opentype.go
in font/opentype
162 13
gpos.go
in font/sfnt
413 13
writer.go
in tiff
363 12
decode.go
in vp8l
513 11
gen.go
in ccitt
482 11
decode.go
in vp8
296 10
font.go
in font
187 10
reader.go
in bmp
176 9
filter.go
in vp8
232 9
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 95 long lines.

File# lines# units# long lines
impl.go
in draw
6069 83 68
gen.go
in draw
1279 28 9
sfnt.go
in font/sfnt
1358 55 8
gpos.go
in font/sfnt
413 13 2
scale.go
in draw
349 15 2
reader.go
in tiff
608 14 2
reconstruct.go
in vp8
314 7 1
opentype.go
in font/opentype
162 13 1
gen.go
in font/basicfont
90 1 1
truetype.go
in font/sfnt
451 9 1