facebookresearch / moolib
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 34 files with 11,158 lines of code.
    • 2 very long files (4,635 lines of code)
    • 2 long files (1,692 lines of code)
    • 11 medium size files (3,347 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (976 lines of code)
    • 13 very small files (508 lines of code)
41% | 15% | 29% | 8% | 4%
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
cc68% | 14% | 14% | 2% | <1%
h0% | 17% | 56% | 18% | 7%
py0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src42% | 15% | 30% | 8% | 3%
py/moolib0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
cc
rpc.cc
in src
2716 136
cc
moolib.cc
in src
1919 73
cc
accumulator.cc
in src
976 63
group.h
in src
716 38
env.h
in src
413 19
serialization.h
in src
369 38
cc
env.cc
in src
363 11
pythonserialization.h
in src
339 23
rpc.h
in src
333 15
cc
tensor.cc
in src
313 35
cc
batch_utils.cc
in src
285 10
function.h
in src
282 8
batchsizefinder.h
in src
218 7
shm.h
in src
217 10
broker.h
in src
215 6
cc
async.cc
in src
197 9
buffer.h
in src
191 12
util.h
in src
178 15
synchronization.h
in src
173 14
tensor.h
in src
131 3
allocator.h
in src
106 2
pyutil.h
in src
90 5
logging.h
in src
83 5
any.h
in src
64 1
setup.py
in root
51 3
__init__.py
in py/moolib
42 -
accumulator.h
in src
38 -
broker.py
in py/moolib
28 1
cc
group.cc
in src
25 4
cc
tensorpython.cc
in src
21 3
async.h
in src
20 -
toml
pyproject.toml
in root
18 -
pytorch.h
in src
16 2
batch_utils.h
in src
12 -
Files With Most Units (Top 20)
File# lines# units
cc
rpc.cc
in src
2716 136
cc
moolib.cc
in src
1919 73
cc
accumulator.cc
in src
976 63
serialization.h
in src
369 38
group.h
in src
716 38
cc
tensor.cc
in src
313 35
pythonserialization.h
in src
339 23
env.h
in src
413 19
util.h
in src
178 15
rpc.h
in src
333 15
synchronization.h
in src
173 14
buffer.h
in src
191 12
cc
env.cc
in src
363 11
cc
batch_utils.cc
in src
285 10
shm.h
in src
217 10
cc
async.cc
in src
197 9
function.h
in src
282 8
batchsizefinder.h
in src
218 7
broker.h
in src
215 6
logging.h
in src
83 5
Files With Long Lines (Top 0)

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

File# lines# units# long lines