pytorch / tensorpipe
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 205 files with 21,363 lines of code.
    • 1 very long files (1,042 lines of code)
    • 4 long files (2,566 lines of code)
    • 22 medium size files (6,560 lines of codeclsfd_ftr_w_mp_ins)
    • 40 small files (5,792 lines of code)
    • 138 very small files (5,403 lines of code)
4% | 12% | 30% | 27% | 25%
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
cc9% | 10% | 41% | 25% | 13%
h0% | 14% | 17% | 30% | 37%
cmake0% | 0% | 62% | 0% | 37%
py0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorpipe/core46% | 0% | 21% | 8% | 24%
tensorpipe/common0% | 25% | 12% | 41% | 21%
tensorpipe/benchmark0% | 52% | 0% | 25% | 21%
tensorpipe/channel0% | 7% | 51% | 19% | 21%
tensorpipe/transport0% | 0% | 28% | 34% | 36%
tensorpipe/python0% | 0% | 100% | 0% | 0%
cmake0% | 0% | 62% | 0% | 37%
tensorpipe/misc0% | 0% | 0% | 100% | 0%
tensorpipe0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cc
pipe_impl.cc
in tensorpipe/core
1042 37
optional.h
in tensorpipe/common
790 55
cc
benchmark_pipe.cc
in tensorpipe/benchmark
665 16
ibv_lib.h
in tensorpipe/common
606 7
cc
context_impl.cc
in tensorpipe/channel/cuda_gdr
505 25
cc
channel_impl.cc
in tensorpipe/channel/cuda_gdr
495 20
cc
channel_impl.cc
in tensorpipe/channel/cuda_basic
489 21
cc
connection_impl.cc
in tensorpipe/transport/ibv
407 19
cc
channel_impl.cc
in tensorpipe/channel/cuda_ipc
403 17
cc
tensorpipe.cc
in tensorpipe/python
367 7
cc
context_impl.cc
in tensorpipe/channel/cuda_ipc
345 14
connection_impl_boilerplate.h
in tensorpipe/transport
343 21
cmake
FindPackageHandleStandardArgs.cmake
in cmake
322 -
uv.h
in tensorpipe/transport/uv
300 30
cc
channel_impl.cc
in tensorpipe/channel/mpt
279 12
cc
connection_impl.cc
in tensorpipe/transport/shm
271 12
cc
context_impl.cc
in tensorpipe/channel/cma
266 13
cc
channel_impl.cc
in tensorpipe/channel/cuda_xth
263 14
cc
listener_impl.cc
in tensorpipe/core
255 14
cuda.h
in tensorpipe/common
240 25
ringbuffer_read_write_ops.h
in tensorpipe/common
229 8
cc
channel_impl.cc
in tensorpipe/channel/cma
226 13
cc
channel_impl.cc
in tensorpipe/channel/xth
222 13
cc
context_impl.cc
in tensorpipe/core
220 21
channel_impl.h
in tensorpipe/channel/cuda_gdr
216 4
channel_impl_boilerplate.h
in tensorpipe/channel
201 14
nop.h
in tensorpipe/common
201 16
cc
context_impl.cc
in tensorpipe/channel/mpt
198 15
ringbuffer_role.h
in tensorpipe/common
198 3
defs.h
in tensorpipe/common
195 4
cc
system.cc
in tensorpipe/common
195 12
ibv.h
in tensorpipe/common
190 16
context_impl_boilerplate.h
in tensorpipe/transport
187 16
cc
reactor.cc
in tensorpipe/transport/ibv
183 10
pipe_impl.h
in tensorpipe/core
182 -
socket.h
in tensorpipe/common
181 7
listener_impl_boilerplate.h
in tensorpipe/transport
180 13
context_impl_boilerplate.h
in tensorpipe/channel
169 15
cc
utility.cc
in tensorpipe/transport/uv
168 3
cc
benchmark_transport.cc
in tensorpipe/benchmark
167 7
cc
epoll_loop.cc
in tensorpipe/common
157 9
cc
options.cc
in tensorpipe/benchmark
156 3
deferred_executor.h
in tensorpipe/common
151 10
cc
context_impl.cc
in tensorpipe/channel/cuda_basic
147 10
cc
connection_impl.cc
in tensorpipe/transport/uv
146 9
cc
channel_impl.cc
in tensorpipe/channel/basic
145 10
connection_boilerplate.h
in tensorpipe/transport
139 7
cc
ibv.cc
in tensorpipe/common
139 7
cc
utility.cc
in tensorpipe/transport/ibv
138 7
channel_impl.h
in tensorpipe/channel/cuda_ipc
134 -
Files With Most Units (Top 20)
File# lines# units
optional.h
in tensorpipe/common
790 55
cc
pipe_impl.cc
in tensorpipe/core
1042 37
uv.h
in tensorpipe/transport/uv
300 30
cc
context_impl.cc
in tensorpipe/channel/cuda_gdr
505 25
cuda.h
in tensorpipe/common
240 25
connection_impl_boilerplate.h
in tensorpipe/transport
343 21
cc
context_impl.cc
in tensorpipe/core
220 21
cc
channel_impl.cc
in tensorpipe/channel/cuda_basic
489 21
cc
channel_impl.cc
in tensorpipe/channel/cuda_gdr
495 20
cc
connection_impl.cc
in tensorpipe/transport/ibv
407 19
cc
channel_impl.cc
in tensorpipe/channel/cuda_ipc
403 17
cc
benchmark_pipe.cc
in tensorpipe/benchmark
665 16
context_impl_boilerplate.h
in tensorpipe/transport
187 16
nop.h
in tensorpipe/common
201 16
ibv.h
in tensorpipe/common
190 16
cc
context_impl.cc
in tensorpipe/channel/mpt
198 15
context_impl_boilerplate.h
in tensorpipe/channel
169 15
cc
listener_impl.cc
in tensorpipe/core
255 14
channel_impl_boilerplate.h
in tensorpipe/channel
201 14
cc
context_impl.cc
in tensorpipe/channel/cuda_ipc
345 14
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 8 long lines.

File# lines# units# long lines
cmake
FindPackageHandleStandardArgs.cmake
in cmake
322 - 8