golang / text
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 282 files with 543,571 lines of code.
    • 40 very long files (504,234 lines of code)
    • 13 long files (8,642 lines of code)
    • 59 medium size files (18,224 lines of codeclsfd_ftr_w_mp_ins)
    • 54 small files (7,778 lines of code)
    • 116 very small files (4,693 lines of code)
92% | 1% | 3% | 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
go92% | 1% | 3% | 1% | <1%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
encoding96% | <1% | 1% | 1% | <1%
unicode95% | 1% | 1% | <1% | <1%
collate95% | <1% | 3% | <1% | <1%
date99% | 0% | <1% | 0% | 0%
language94% | 0% | 3% | 1% | <1%
secure93% | 0% | 3% | <1% | 1%
search97% | 0% | 0% | 2% | <1%
width91% | 0% | 3% | 0% | 4%
internal33% | 17% | 30% | 9% | 8%
currency77% | 0% | 9% | 11% | 2%
message0% | 47% | 29% | 18% | 4%
cases0% | 64% | 16% | 0% | 18%
feature0% | 0% | 67% | 25% | 6%
transform0% | 0% | 100% | 0% | 0%
cmd0% | 0% | 63% | 0% | 36%
runes0% | 0% | 65% | 34% | 0%
ROOT0% | 0% | 99% | 0% | <1%
number0% | 0% | 0% | 50% | 49%
Longest Files (Top 50)
File# lines# units
tables.go
in collate
68780 -
tables.go
in date
68601 -
tables.go
in language/display
48848 -
tables.go
in encoding/simplifiedchinese
43972 -
tables.go
in encoding/traditionalchinese
37108 -
tables.go
in encoding/korean
34121 -
tables.go
in encoding/japanese
26934 -
tables13.0.0.go
in unicode/runenames
16490 5
tables12.0.0.go
in unicode/runenames
15959 5
tables11.0.0.go
in unicode/runenames
15690 5
tables10.0.0.go
in unicode/runenames
15388 5
tables9.0.0.go
in unicode/runenames
14943 5
tables.go
in search
11569 -
tables13.0.0.go
in unicode/rangetable
8323 -
tables12.0.0.go
in unicode/rangetable
7653 -
tables.go
in encoding/charmap
7277 -
tables11.0.0.go
in unicode/rangetable
6993 -
tables10.0.0.go
in unicode/rangetable
6344 -
tables9.0.0.go
in unicode/rangetable
5705 -
tables13.0.0.go
in secure/precis
3721 6
tables12.0.0.go
in secure/precis
3694 6
tables11.0.0.go
in secure/precis
3601 6
tables10.0.0.go
in secure/precis
3486 6
tables9.0.0.go
in secure/precis
3395 6
tables.go
in internal/language
3235 -
tables.go
in currency
2578 -
tables.go
in encoding/ianaindex
2330 -
tables13.0.0.go
in unicode/bidi
1645 6
tables12.0.0.go
in unicode/bidi
1621 6
tables11.0.0.go
in unicode/bidi
1591 6
tables10.0.0.go
in unicode/bidi
1525 6
tables9.0.0.go
in unicode/bidi
1497 6
xml.go
in unicode/cldr
1468 -
gen.go
in internal/language
1261 49
tables12.0.0.go
in width
1170 6
tables13.0.0.go
in width
1170 6
tables11.0.0.go
in width
1153 6
tables.go
in internal/number
1143 -
tables10.0.0.go
in width
1141 6
tables9.0.0.go
in width
1111 6
tables.go
in internal/language/compact
978 -
gen.go
in internal/export/unicode
896 37
print.go
in message
838 34
maketables.go
in unicode/norm
808 30
core.go
in unicode/bidi
670 40
extract.go
in message/pipeline
658 29
gen.go
in cases
604 20
builder.go
in collate/build
548 23
idna10.0.0.go
in internal/export/idna
547 36
map.go
in cases
538 26
Files With Most Units (Top 20)
File# lines# units
language.go
in language
352 51
gen.go
in internal/language
1261 49
core.go
in unicode/bidi
670 40
gen.go
in internal/export/unicode
896 37
idna10.0.0.go
in internal/export/idna
547 36
display.go
in language/display
238 36
idna9.0.0.go
in internal/export/idna
509 35
print.go
in message
838 34
language.go
in internal/language
435 33
resolve.go
in unicode/cldr
526 31
parse.go
in internal/language
492 31
maketables.go
in unicode/norm
808 30
composition.go
in unicode/norm
368 30
extract.go
in message/pipeline
658 29
normalize.go
in unicode/norm
490 28
lookup.go
in internal/language
308 28
colcmp.go
in collate/tools/colcmp
446 28
maketables.go
in language/display
468 27
codec.go
in internal/catmsg
271 26
maketables.go
in collate
473 26
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 707 long lines.

File# lines# units# long lines
tables.go
in collate
68780 - 402
tables.go
in date
68601 - 143
tables.go
in language/display
48848 - 128
collelem.go
in internal/colltab
264 16 5
builder.go
in collate/build
548 23 5
maketables.go
in unicode/norm
808 30 4
tables.go
in internal/language
3235 - 4
tables.go
in search
11569 - 2
transform.go
in width
214 6 2
match.go
in language
426 18 2
makexml.go
in unicode/cldr
351 9 1
base.go
in unicode/cldr
75 8 1
flag.go
in internal/testtext
13 1 1
gen.go
in internal/export/unicode
896 37 1
print.go
in internal/triegen
216 7 1
width.go
in width
93 13 1
colcmp.go
in collate/tools/colcmp
446 28 1
lookup.go
in language/display
182 12 1
tables.go
in encoding/htmlindex
345 - 1
generate.go
in message/pipeline
276 9 1