awslabs / aws-c-io
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 65 files with 23,983 lines of code.
    • 7 very long files (10,899 lines of code)
    • 9 long files (6,283 lines of code)
    • 13 medium size files (4,429 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,063 lines of code)
    • 29 very small files (1,309 lines of code)
45% | 26% | 18% | 4% | 5%
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
c48% | 28% | 17% | 1% | 3%
h31% | 13% | 22% | 17% | 15%
yml0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/windows69% | 26% | 0% | 0% | 3%
source31% | 30% | 29% | 4% | 3%
source/posix73% | 0% | 20% | 0% | 6%
include/aws31% | 13% | 22% | 17% | 15%
source/s2n100% | 0% | 0% | 0% | 0%
source/darwin0% | 80% | 19% | 0% | 0%
source/bsd0% | 100% | 0% | 0% | 0%
source/linux0% | 0% | 100% | 0% | 0%
codebuild0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
socket.c
in source/windows/iocp
2721 73
secure_channel_tls_handler.c
in source/windows
1617 32
socket.c
in source/posix
1494 36
host_resolver.c
in source
1361 44
pkcs11t.h
in include/aws/io/private/pkcs11/v2.40
1340 -
s2n_tls_channel_handler.c
in source/s2n
1216 38
channel_bootstrap.c
in source
1150 35
pkcs11.c
in source
948 21
channel.c
in source
911 48
secure_transport_tls_channel_handler.c
in source/darwin
888 26
kqueue_event_loop.c
in source/bsd
708 20
tls_channel_handler.c
in source
580 33
windows_pki_utils.c
in source/windows
579 7
pkcs11f.h
in include/aws/io/private/pkcs11/v2.40
576 -
pipe.c
in source/windows/iocp
551 15
iocp_event_loop.c
in source/windows/iocp
542 19
epoll_event_loop.c
in source/linux
494 18
io_testing_channel.h
in include/aws/testing
457 48
uri.c
in source
425 18
pipe.c
in source/posix
412 14
standard_retry_strategy.c
in source
411 10
event_loop.c
in source
374 28
io.c
in source
338 3
socket_channel_handler.c
in source
308 15
exponential_backoff_retry_strategy.c
in source
289 11
tls_channel_handler.h
in include/aws/io
260 -
stream.c
in source
231 15
event_loop.h
in include/aws/io
220 -
darwin_pki_utils.c
in source/darwin
210 5
io.h
in include/aws/io
197 -
channel.h
in include/aws/io
196 -
pki_utils.c
in source
174 4
message_pool.c
in source
155 7
host_resolver.h
in include/aws/io
127 -
socket.h
in include/aws/io
107 -
channel_bootstrap.h
in include/aws/io
107 -
retry_strategy.h
in include/aws/io
90 -
host_resolver.c
in source/posix
89 1
host_resolver.c
in source/windows
84 1
alpn_handler.c
in source
83 5
pkcs11_private.h
in include/aws/io/private
82 -
pem_utils.c
in source
80 1
winsock_init.c
in source/windows
72 3
pki_utils.h
in include/aws/io/private
65 -
uri.h
in include/aws/io
57 -
pipe.h
in include/aws/io
54 -
retry_strategy.c
in source
51 7
tls_channel_handler_shared.c
in source
51 6
message_pool.h
in include/aws/io
51 -
shared_library.c
in source/windows
47 3
Files With Most Units (Top 20)
File# lines# units
socket.c
in source/windows/iocp
2721 73
channel.c
in source
911 48
io_testing_channel.h
in include/aws/testing
457 48
host_resolver.c
in source
1361 44
s2n_tls_channel_handler.c
in source/s2n
1216 38
socket.c
in source/posix
1494 36
channel_bootstrap.c
in source
1150 35
tls_channel_handler.c
in source
580 33
secure_channel_tls_handler.c
in source/windows
1617 32
event_loop.c
in source
374 28
secure_transport_tls_channel_handler.c
in source/darwin
888 26
pkcs11.c
in source
948 21
kqueue_event_loop.c
in source/bsd
708 20
iocp_event_loop.c
in source/windows/iocp
542 19
epoll_event_loop.c
in source/linux
494 18
uri.c
in source
425 18
stream.c
in source
231 15
socket_channel_handler.c
in source
308 15
pipe.c
in source/windows/iocp
551 15
pipe.c
in source/posix
412 14
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 7 long lines.

File# lines# units# long lines
pkcs11.c
in source
948 21 5
linux-integration-tests.yml
in codebuild
23 - 1
io.c
in source
338 3 1