facebookresearch / loop_tool
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 29 files with 8,205 lines of code.
    • 1 very long files (2,079 lines of code)
    • 5 long files (3,641 lines of code)
    • 5 medium size files (1,588 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (262 lines of code)
    • 16 very small files (635 lines of code)
25% | 44% | 19% | 3% | 7%
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
cpp36% | 49% | 9% | 1% | 2%
cmake0% | 100% | 0% | 0% | 0%
h0% | 0% | 60% | 11% | 27%
py0% | 0% | 60% | 0% | 39%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/core58% | 39% | 0% | 0% | 2%
src/backends/cuda0% | 97% | 0% | 0% | 2%
src/frontends0% | 54% | 32% | 9% | 3%
include/loop_tool0% | 0% | 62% | 12% | 25%
loop_tool_py0% | 0% | 99% | 0% | <1%
src/backends/cpu0% | 0% | 100% | 0% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 29)
File# lines# units
compile.cpp
in src/core
2079 46
symbolic.cpp
in src/core
869 34
cuda.cpp
in src/backends/cuda
859 26
cmake
FindCUDAToolkit.cmake
in src/backends/cuda
769 -
python.cpp
in src/frontends
617 3
ir.cpp
in src/core
527 25
lazy.h
in include/loop_tool
486 44
lazy.cpp
in src/frontends
361 15
ir.h
in include/loop_tool
311 26
ui.py
in loop_tool_py
217 4
unroll_contiguous.cpp
in src/backends/cpu
213 6
compile.h
in include/loop_tool
157 4
mutate.cpp
in src/frontends
105 3
symbolic.h
in include/loop_tool
100 5
setup.py
in root
70 2
nn.py
in root
68 12
backend.h
in include/loop_tool
59 6
hardware.h
in include/loop_tool
49 6
error.h
in include/loop_tool
47 -
cuda_backend.h
in src/backends/cuda
45 1
hardware.cpp
in src/core
44 4
javascript.cpp
in src/frontends
40 5
backend.cpp
in src/core
39 4
dynlib.h
in include/loop_tool
35 2
tensor.h
in include/loop_tool
16 -
loop_tool.h
in include/loop_tool
8 -
tensor.cpp
in src/core
8 -
mutate.h
in include/loop_tool
6 -
__init__.py
in loop_tool_py
1 -
Files With Most Units (Top 20)
File# lines# units
compile.cpp
in src/core
2079 46
lazy.h
in include/loop_tool
486 44
symbolic.cpp
in src/core
869 34
ir.h
in include/loop_tool
311 26
cuda.cpp
in src/backends/cuda
859 26
ir.cpp
in src/core
527 25
lazy.cpp
in src/frontends
361 15
nn.py
in root
68 12
backend.h
in include/loop_tool
59 6
hardware.h
in include/loop_tool
49 6
unroll_contiguous.cpp
in src/backends/cpu
213 6
symbolic.h
in include/loop_tool
100 5
javascript.cpp
in src/frontends
40 5
compile.h
in include/loop_tool
157 4
ui.py
in loop_tool_py
217 4
backend.cpp
in src/core
39 4
hardware.cpp
in src/core
44 4
mutate.cpp
in src/frontends
105 3
python.cpp
in src/frontends
617 3
dynlib.h
in include/loop_tool
35 2
Files With Long Lines (Top 1)

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

File# lines# units# long lines
cmake
FindCUDAToolkit.cmake
in src/backends/cuda
769 - 2