golang / net
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 426 files with 58,485 lines of code.
    • 8 very long files (23,978 lines of code)
    • 12 long files (8,051 lines of code)
    • 34 medium size files (10,096 lines of codeclsfd_ftr_w_mp_ins)
    • 39 small files (5,239 lines of code)
    • 333 very small files (11,121 lines of code)
40% | 13% | 17% | 8% | 19%
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
go41% | 13% | 17% | 8% | 18%
s0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
publicsuffix93% | 5% | 0% | 0% | <1%
http255% | 6% | 25% | 8% | 3%
html54% | 29% | 10% | 4% | <1%
dns100% | 0% | 0% | 0% | 0%
webdav29% | 37% | 30% | 2% | <1%
idna0% | 77% | 0% | 13% | 8%
trace0% | 53% | 46% | 0% | 0%
bpf0% | 59% | 0% | 37% | 3%
internal0% | 0% | 35% | 16% | 48%
websocket0% | 0% | 80% | 0% | 19%
nettest0% | 0% | 95% | 0% | 4%
http0% | 0% | 92% | 0% | 7%
route0% | 0% | 13% | 25% | 61%
icmp0% | 0% | 21% | 37% | 41%
ipv60% | 0% | 6% | 9% | 83%
context0% | 0% | 68% | 0% | 31%
ipv40% | 0% | 0% | 25% | 74%
dict0% | 0% | 0% | 100% | 0%
proxy0% | 0% | 0% | 37% | 62%
lif0% | 0% | 0% | 21% | 78%
netutil0% | 0% | 0% | 0% | 100%
xsrftoken0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
table.go
in publicsuffix
10538 -
transport.go
in http2
2250 117
entity.go
in html
2235 -
server.go
in http2
2096 108
message.go
in dns/dnsmessage
2045 163
parse.go
in html
2037 55
xml.go
in webdav/internal/xml
1633 46
frame.go
in http2
1144 82
token.go
in html
952 34
marshal.go
in webdav/internal/xml
867 33
trace.go
in trace
793 50
table.go
in html/atom
774 -
file.go
in webdav
631 36
gen.go
in html/atom
631 11
ciphers.go
in http2
612 1
webdav.go
in webdav
589 17
gen.go
in publicsuffix
582 26
instructions.go
in bpf
564 41
idna10.0.0.go
in idna
547 36
idna9.0.0.go
in idna
509 35
hybi.go
in websocket
494 24
read.go
in webdav/internal/xml
448 12
h2i.go
in http2/h2i
438 17
tables.go
in http2/hpack
419 7
events.go
in trace
415 30
timeseries.go
in internal/timeseries
374 35
conntest.go
in nettest
370 17
xml.go
in webdav
366 15
h2c.go
in http2/h2c
366 19
gen.go
in internal/iana
356 8
address.go
in route
333 20
hpack.go
in http2/hpack
318 29
lock.go
in webdav
310 20
prop.go
in webdav
308 13
writesched_priority.go
in http2
306 14
interface.go
in icmp
287 18
histogram.go
in trace
287 21
typeinfo.go
in webdav/internal/xml
286 7
nettest.go
in nettest
273 15
websocket.go
in websocket
268 20
write.go
in http2
247 31
http2.go
in http2
240 27
proxy.go
in http/httpproxy
230 15
httplex.go
in http/httpguts
230 15
socks.go
in internal/socks
230 12
dgramopt.go
in ipv6
229 17
client_conn_pool.go
in http2
224 12
render.go
in html
217 4
const.go
in internal/iana
213 -
foreign.go
in html
206 4
Files With Most Units (Top 20)
File# lines# units
message.go
in dns/dnsmessage
2045 163
transport.go
in http2
2250 117
server.go
in http2
2096 108
frame.go
in http2
1144 82
parse.go
in html
2037 55
trace.go
in trace
793 50
xml.go
in webdav/internal/xml
1633 46
instructions.go
in bpf
564 41
idna10.0.0.go
in idna
547 36
file.go
in webdav
631 36
idna9.0.0.go
in idna
509 35
timeseries.go
in internal/timeseries
374 35
token.go
in html
952 34
marshal.go
in webdav/internal/xml
867 33
write.go
in http2
247 31
events.go
in trace
415 30
hpack.go
in http2/hpack
318 29
http2.go
in http2
240 27
gen.go
in publicsuffix
582 26
hybi.go
in websocket
494 24
Files With Long Lines (Top 20)

There are 54 files with lines longer than 120 characters. In total, there are 195 long lines.

File# lines# units# long lines
sys_linux.go
in ipv6
62 5 11
sys_solaris.go
in ipv6
62 5 10
sys_freebsd.go
in ipv6
79 6 10
sys_darwin.go
in ipv6
66 5 10
sys_zos.go
in ipv6
59 4 9
sys_linux.go
in ipv4
49 3 9
sys_freebsd.go
in ipv4
67 3 7
sys_darwin.go
in ipv4
56 3 7
sys_windows.go
in ipv6
50 2 6
sys_bsd.go
in ipv6
45 3 6
sys_aix.go
in ipv6
62 5 6
sys_zos.go
in ipv4
45 3 6
sys_solaris.go
in ipv4
48 3 6
payload_cmsg.go
in ipv6
51 2 5
marshal.go
in webdav/internal/xml
867 33 5
transport.go
in http2
2250 117 5
server.go
in http2
2096 108 5
payload_cmsg.go
in ipv4
64 2 5
packet.go
in ipv4
79 4 5
batch.go
in ipv6
49 2 4