facebookresearch / narwhal
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 53 files with 5,722 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 13 medium size files (3,149 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,377 lines of code)
    • 30 very small files (1,196 lines of code)
0% | 0% | 55% | 24% | 20%
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
rs0% | 0% | 51% | 26% | 21%
py0% | 0% | 64% | 21% | 14%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
benchmark0% | 0% | 64% | 21% | 14%
primary0% | 0% | 62% | 7% | 29%
worker0% | 0% | 32% | 38% | 29%
consensus0% | 0% | 93% | 0% | 6%
crypto0% | 0% | 94% | 0% | 5%
config0% | 0% | 94% | 0% | 5%
network0% | 0% | 0% | 83% | 16%
node0% | 0% | 0% | 89% | 10%
store0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
plot-script.py
in benchmark/data/paper-data
378 33
core.rs
in primary/src
310 3
remote.py
in benchmark/benchmark
287 12
worker.rs
in worker/src
244 3
header_waiter.rs
in primary/src
229 -
config.py
in benchmark/benchmark
220 17
messages.rs
in primary/src
219 8
lib.rs
in consensus/src
217 6
primary.rs
in primary/src
214 -
logs.py
in benchmark/benchmark
211 13
lib.rs
in crypto/src
209 14
instance.py
in benchmark/benchmark
208 13
lib.rs
in config/src
203 4
reliable_sender.rs
in network/src
190 3
synchronizer.rs
in worker/src
171 -
plot.py
in benchmark/benchmark
168 17
aggregate.py
in benchmark/benchmark
153 13
benchmark_client.rs
in node/src
127 -
batch_maker.rs
in worker/src
119 -
utils.py
in benchmark/benchmark
115 21
main.rs
in node/src
114 -
proposer.rs
in primary/src
112 -
simple_sender.rs
in network/src
108 3
synchronizer.rs
in primary/src
98 -
summary-plot.py
in benchmark/data/paper-data
95 2
local.py
in benchmark/benchmark
94 5
lib.rs
in store/src
84 -
certificate_waiter.rs
in primary/src
70 -
aggregators.rs
in primary/src
70 -
quorum_waiter.rs
in worker/src
66 -
garbage_collector.rs
in primary/src
56 -
helper.rs
in primary/src
56 -
helper.rs
in worker/src
55 -
commands.py
in benchmark/benchmark
53 9
settings.py
in benchmark/benchmark
46 2
error.rs
in primary/src
44 -
processor.rs
in worker/src
40 -
primary_connector.rs
in worker/src
30 -
toml
Cargo.toml
in node
28 -
toml
Cargo.toml
in primary
27 -
toml
Cargo.toml
in worker
24 -
payload_receiver.rs
in primary/src
21 -
error.rs
in network/src
18 -
lib.rs
in primary/src
18 -
toml
Cargo.toml
in network
17 -
receiver.rs
in network/src
16 -
toml
Cargo.toml
in consensus
15 -
toml
Cargo.toml
in crypto
12 -
toml
Cargo.toml
in config
11 -
lib.rs
in worker/src
11 -
Files With Most Units (Top 20)
File# lines# units
plot-script.py
in benchmark/data/paper-data
378 33
utils.py
in benchmark/benchmark
115 21
plot.py
in benchmark/benchmark
168 17
config.py
in benchmark/benchmark
220 17
lib.rs
in crypto/src
209 14
instance.py
in benchmark/benchmark
208 13
aggregate.py
in benchmark/benchmark
153 13
logs.py
in benchmark/benchmark
211 13
remote.py
in benchmark/benchmark
287 12
commands.py
in benchmark/benchmark
53 9
messages.rs
in primary/src
219 8
lib.rs
in consensus/src
217 6
local.py
in benchmark/benchmark
94 5
lib.rs
in config/src
203 4
reliable_sender.rs
in network/src
190 3
simple_sender.rs
in network/src
108 3
worker.rs
in worker/src
244 3
core.rs
in primary/src
310 3
settings.py
in benchmark/benchmark
46 2
summary-plot.py
in benchmark/data/paper-data
95 2
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