File Size Overall
  • There are 914 files with 97,379 lines of code.
    • 11 very long files (15,928 lines of code)
    • 20 long files (14,953 lines of code)
    • 85 medium size files (24,381 lines of code)
    • 133 small files (18,547 lines of code)
    • 665 very small files (23,570 lines of code)
16% | 15% | 25% | 19% | 24%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
h17% | 12% | 15% | 21% | 33%
cc14% | 13% | 31% | 19% | 21%
hpp60% | 39% | 0% | 0% | 0%
rs21% | 27% | 22% | 15% | 12%
c0% | 100% | 0% | 0% | 0%
toml0% | 19% | 63% | 4% | 13%
py0% | 0% | 57% | 25% | 16%
cpp0% | 0% | 64% | 0% | 35%
clang-tidy0% | 0% | 0% | 100% | 0%
sql0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src17% | 14% | 23% | 19% | 24%
benchmarks0% | 59% | 40% | 0% | 0%
configs0% | 19% | 63% | 4% | 13%
deploy0% | 0% | 65% | 0% | 34%
hf3fs0% | 0% | 88% | 0% | 11%
hf3fs_utils0% | 0% | 41% | 58% | <1%
ROOT0% | 0% | 0% | 90% | 9%
hf3fs_fuse0% | 0% | 0% | 81% | 18%
Longest Files (Top 50)
File# lines# units
FuseOps.cc
in src/fuse
2255 62
StorageClientImpl.cc
in src/client/storage
2075 52
RobinHood.h
in src/common/utils
1796 125
MagicEnum.hpp
in src/common/utils
1453 55
engine.rs
in src/storage/chunk_engine/src/core
1451 16
hf3fs_expected.h
in src/lib/api
1366 99
ArgParse.h
in src/common/utils
1231 63
UnorderedDense.h
in src/common/utils
1129 95
Utf8.h
in src/common/utils
1083 20
IBSocket.cc
in src/common/net/ib
1073 52
StorageOperator.cc
in src/storage/service
1016 22
Nameof.hpp
in src/common/utils
960 36
RapidCsv.h
in src/common/utils
953 69
ChunkMetaStore.cc
in src/storage/store
894 32
Serde.h
in src/common/serde
884 62
MgmtdClient.cc
in src/client/mgmtd
855 75
MetaClient.cc
in src/client/meta
853 45
Linenoise.c
in src/common/utils
836 38
GcManager.cc
in src/meta/components
787 25
ConfigBase.h
in src/common/utils
771 54
meta_store.rs
in src/storage/chunk_engine/src/meta
729 11
IBDevice.cc
in src/common/net/ib
728 25
StorageBench.h
in benchmarks/storage_bench
726 18
UsrbIo.cc
in src/lib/api
671 26
Common.h
in src/fbs/storage
665 37
IBConnect.cc
in src/common/net/ib
646 19
BatchOperation.cc
in src/meta/store/ops
641 16
Service.h
in src/fbs/meta
636 29
main.rs
in src/client/trash_cleaner/src
624 9
meta_main.toml
in configs
558 -
cxx.rs
in src/storage/chunk_engine/src
536 32
485 -
IBSocket.h
in src/common/net/ib
467 45
StorageClient.h
in src/client/storage
456 40
data_placement.py
in deploy/data_placement/src/model
449 35
446 -
MgmtdStore.cc
in src/mgmtd/store
431 30
ResyncWorker.cc
in src/storage/sync
409 5
Utils.h
in src/fbs/meta
401 28
StorageTarget.cc
in src/storage/store
400 13
usrbio_binding.cc
in src/lib/py
400 1
393 -
Schema.h
in src/fbs/meta
393 37
ChunkReplica.cc
in src/storage/store
390 6
MetaOperator.cc
in src/meta/service
384 31
382 24
FuseClients.cc
in src/fuse
375 6
TargetMap.cc
in src/storage/service
370 22
Serde.cc
in src/common/serde
358 37
RDMABuf.h
in src/common/net/ib
356 45
Large Files That Change Often (Top 20)
To change a file, an AI coding agent (or a person) has to read it: these files are read the most for the changes in the past year (lines × changes).
File# lines≈ tokens
to read
# changes
(1y)
≈ lines edited
per change
lines read per
line changed
engine.rs
in src/storage/chunk_engine/src/core
1451 ~10k–30k 3 ~15 ~100
IBSocket.cc
in src/common/net/ib
1073 ~7k–20k 1 ~15 ~70
cxx.rs
in src/storage/chunk_engine/src
536 ~3k–10k 2 ~7 ~70
StorageOperator.cc
in src/storage/service
1016 ~7k–15k 1 ~30 ~30
Common.h
in src/fbs/storage
665 ~3k–10k 1 ~5 ~100
IBConnect.cc
in src/common/net/ib
646 ~3k–10k 1 ~10 ~50
IBSocket.h
in src/common/net/ib
467 ~3k–7k 1 ~2 ~300
StorageClient.h
in src/client/storage
456 ~3k–7k 1 ~2 ~200
393 ~2k–7k 1 ~2 ~200
rocksdb.rs
in src/storage/chunk_engine/src/meta
260 ~1.5k–5k 1 ~2 ~150
ReliableForwarding.cc
in src/storage/service
242 ~1.5k–5k 1 ~5 ~50
IoRing.cc
in src/fuse
240 ~1.5k–5k 1 ~2 ~100
IOWorker.cc
in src/common/net
112 ~700–2k 2 ~10 ~10
AtomicSharedPtrTable.h
in src/common/utils
65 ~300–1k 3 ~30 ~2
TransportPool.cc
in src/common/net
186 ~1k–3k 1 ~3 ~50
Schema.cc
in src/fbs/meta
180 ~1k–3k 1 ~10 ~20
allocators.rs
in src/storage/chunk_engine/src/alloc
178 ~1k–3k 1 ~2 ~100
Shuffle.h
in src/common/utils
157 ~1k–3k 1 ~200 ~1
cli.py
in hf3fs_utils
141 ~700–2k 1 - -
SetChainsOperation.cc
in src/mgmtd/ops
124 ~700–2k 1 ~2 ~70

Tokens are lines × 7 to 14 (analysis.fileReadsForChanges). Lines edited per change are the file's lines added and deleted divided by its commits over the whole history. Agents read about 2,000 lines at a time: when a 17,000-line file was split into modules, the tokens an agent read for the same change fell by 83% (The Economic Benefit of Refactoring, 2026).

Files With Most Units (Top 50)
File# lines# units
RobinHood.h
in src/common/utils
1796 125
hf3fs_expected.h
in src/lib/api
1366 99
UnorderedDense.h
in src/common/utils
1129 95
MgmtdClient.cc
in src/client/mgmtd
855 75
RapidCsv.h
in src/common/utils
953 69
ArgParse.h
in src/common/utils
1231 63
FuseOps.cc
in src/fuse
2255 62
Serde.h
in src/common/serde
884 62
MagicEnum.hpp
in src/common/utils
1453 55
ConfigBase.h
in src/common/utils
771 54
IBSocket.cc
in src/common/net/ib
1073 52
StorageClientImpl.cc
in src/client/storage
2075 52
IBSocket.h
in src/common/net/ib
467 45
RDMABuf.h
in src/common/net/ib
356 45
MetaClient.cc
in src/client/meta
853 45
Common.h
in src/fbs/meta
222 44
StorageClient.h
in src/client/storage
456 40
Linenoise.c
in src/common/utils
836 38
FDB.cc
in src/fdb
231 38
Serde.cc
in src/common/serde
358 37
Schema.h
in src/fbs/meta
393 37
Common.h
in src/fbs/storage
665 37
Nameof.hpp
in src/common/utils
960 36
data_placement.py
in deploy/data_placement/src/model
449 35
cxx.rs
in src/storage/chunk_engine/src
536 32
ChunkMetaStore.cc
in src/storage/store
894 32
MetaOperator.cc
in src/meta/service
384 31
__init__.py
in hf3fs
242 30
MgmtdStore.cc
in src/mgmtd/store
431 30
Recorder.h
in src/common/monitor
345 30
Service.h
in src/fbs/meta
636 29
Utils.h
in src/fbs/meta
401 28
IBDevice.h
in src/common/net/ib
279 27
UsrbIo.cc
in src/lib/api
671 26
GcManager.cc
in src/meta/components
787 25
IBDevice.cc
in src/common/net/ib
728 25
190 24
382 24
168 23
StorageOperator.cc
in src/storage/service
1016 22
TargetMap.cc
in src/storage/service
370 22
Sample.h
in src/common/monitor
90 22
SerdeSchemaBuilder.h
in src/analytics
190 22
size.rs
in src/storage/chunk_engine/src/utils
229 21
WorkStealingBlockingQueue.h
in src/common/utils
207 21
DownwardBytes.h
in src/common/utils
136 21
AdminUserCtrl.cc
in src/client/cli/admin
354 21
MemDBStore.h
in src/kv
100 20
Address.h
in src/common/utils
102 20
Utf8.h
in src/common/utils
1083 20
Files With Long Lines (Top 8)

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

File# lines# units# long lines
data_placement.py
in deploy/data_placement/src/model
449 35 39
259 - 11
data_placement_job.py
in deploy/data_placement/src/model
89 4 9
gen_chain_table.py
in deploy/data_placement/src/setup
100 3 6
hf3fs_usrbio.cpp
in benchmarks/fio_usrbio
247 12 3
in
VersionInfo.cc.in
in src/common/utils
42 - 2
Recorder.h
in src/common/monitor
345 30 1
IBSocket.cc
in src/common/net/ib
1073 52 1
Correlations

File Size vs. Commits (all time): 88 points

src/mgmtd/ops/SetChainTableOperation.cc x: 1 commits (all time) y: 75 lines of code src/fuse/IoRing.cc x: 1 commits (all time) y: 240 lines of code src/storage/service/StorageOperator.cc x: 2 commits (all time) y: 1016 lines of code src/storage/chunk_engine/src/alloc/allocators.rs x: 1 commits (all time) y: 178 lines of code hf3fs_utils/cli.py x: 1 commits (all time) y: 141 lines of code src/common/utils/Address.h x: 1 commits (all time) y: 102 lines of code src/common/net/ib/IBConnect.cc x: 1 commits (all time) y: 646 lines of code src/common/net/ib/IBSocket.cc x: 2 commits (all time) y: 1073 lines of code src/common/net/ib/IBSocket.h x: 2 commits (all time) y: 467 lines of code src/storage/chunk_engine/src/core/engine.rs x: 12 commits (all time) y: 1451 lines of code src/storage/chunk_engine/src/cxx.rs x: 3 commits (all time) y: 536 lines of code src/common/utils/SimpleRingBuffer.h x: 1 commits (all time) y: 116 lines of code src/common/utils/AtomicSharedPtrTable.h x: 3 commits (all time) y: 65 lines of code src/storage/chunk_engine/src/meta/rocksdb.rs x: 1 commits (all time) y: 260 lines of code src/common/utils/Shuffle.h x: 1 commits (all time) y: 157 lines of code src/client/storage/StorageClient.h x: 2 commits (all time) y: 456 lines of code src/common/net/IOWorker.cc x: 2 commits (all time) y: 112 lines of code configs/hf3fs_fuse_main.toml x: 1 commits (all time) y: 393 lines of code src/fuse/FuseConfig.h x: 1 commits (all time) y: 80 lines of code src/common/app/OnePhaseApplication.h x: 1 commits (all time) y: 111 lines of code src/fbs/storage/Common.h x: 4 commits (all time) y: 665 lines of code src/storage/service/TargetMap.cc x: 1 commits (all time) y: 370 lines of code configs/storage_main.toml x: 1 commits (all time) y: 446 lines of code src/common/net/Listener.cc x: 3 commits (all time) y: 205 lines of code src/common/net/Listener.h x: 1 commits (all time) y: 52 lines of code src/common/serde/Serde.h x: 1 commits (all time) y: 884 lines of code src/storage/chunk_engine/src/meta/meta_store.rs x: 1 commits (all time) y: 729 lines of code src/lib/api/UsrbIo.cc x: 1 commits (all time) y: 671 lines of code src/fuse/IoRing.h x: 1 commits (all time) y: 239 lines of code src/fbs/meta/FileOperation.cc x: 1 commits (all time) y: 306 lines of code src/storage/sync/ResyncWorker.cc x: 2 commits (all time) y: 409 lines of code src/client/cli/admin/SetPreferredTargetOrder.cc x: 1 commits (all time) y: 35 lines of code src/client/storage/StorageClientImpl.cc x: 2 commits (all time) y: 2075 lines of code src/common/monitor/Recorder.cc x: 1 commits (all time) y: 290 lines of code src/common/monitor/Recorder.h x: 1 commits (all time) y: 345 lines of code src/storage/store/StorageTarget.cc x: 2 commits (all time) y: 400 lines of code src/lib/rs/hf3fs-usrbio-sys/build.rs x: 2 commits (all time) y: 17 lines of code src/storage/chunk_engine/src/utils/aligned.rs x: 2 commits (all time) y: 4 lines of code benchmarks/fio_usrbio/hf3fs_usrbio.cpp x: 2 commits (all time) y: 247 lines of code benchmarks/storage_bench/StorageBench.h x: 2 commits (all time) y: 726 lines of code src/fuse/FuseOps.cc x: 2 commits (all time) y: 2255 lines of code src/common/utils/SysResource.cc x: 1 commits (all time) y: 188 lines of code src/client/meta/MetaClient.h x: 1 commits (all time) y: 267 lines of code src/client/trash_cleaner/src/main.rs x: 1 commits (all time) y: 624 lines of code src/storage/store/StorageTargets.cc x: 2 commits (all time) y: 271 lines of code src/common/kv/mem/MemTransaction.h x: 1 commits (all time) y: 336 lines of code src/fdb/FDBTransaction.cc x: 1 commits (all time) y: 382 lines of code src/client/storage/UpdateChannelAllocator.cc x: 1 commits (all time) y: 63 lines of code src/fuse/UserConfig.cc x: 1 commits (all time) y: 144 lines of code src/common/utils/RobinHood.h x: 1 commits (all time) y: 1796 lines of code src/common/app/ClientId.h x: 1 commits (all time) y: 43 lines of code src/common/utils/Status.h x: 4 commits (all time) y: 137 lines of code src/client/cli/admin/DumpChunkMeta.cc x: 1 commits (all time) y: 209 lines of code src/client/cli/admin/DumpInodes.cc x: 1 commits (all time) y: 280 lines of code src/common/utils/VersionInfo.h x: 1 commits (all time) y: 19 lines of code src/storage/worker/CheckWorker.cc x: 1 commits (all time) y: 252 lines of code src/common/utils/Linenoise.c x: 1 commits (all time) y: 836 lines of code src/common/utils/UtcTimeSerde.h x: 1 commits (all time) y: 10 lines of code src/storage/chunk_engine/src/alloc/allocator.rs x: 1 commits (all time) y: 223 lines of code
2255.0
lines of code
  min: 4.0
  average: 336.92
  25th percentile: 108.75
  median: 196.5
  75th percentile: 393.0
  max: 2255.0
0 12.0
commits (all time)
min: 1.0 | average: 1.43 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 12.0

File Size vs. Contributors (all time): 88 points

src/mgmtd/ops/SetChainTableOperation.cc x: 1 contributors (all time) y: 75 lines of code src/fuse/IoRing.cc x: 1 contributors (all time) y: 240 lines of code src/storage/service/StorageOperator.cc x: 2 contributors (all time) y: 1016 lines of code src/storage/chunk_engine/src/alloc/allocators.rs x: 1 contributors (all time) y: 178 lines of code hf3fs_utils/cli.py x: 1 contributors (all time) y: 141 lines of code src/common/utils/Address.h x: 1 contributors (all time) y: 102 lines of code src/common/net/ib/IBConnect.cc x: 1 contributors (all time) y: 646 lines of code src/common/net/ib/IBSocket.cc x: 2 contributors (all time) y: 1073 lines of code src/common/net/ib/IBSocket.h x: 2 contributors (all time) y: 467 lines of code src/storage/chunk_engine/src/core/engine.rs x: 4 contributors (all time) y: 1451 lines of code src/storage/chunk_engine/src/cxx.rs x: 2 contributors (all time) y: 536 lines of code src/common/utils/SimpleRingBuffer.h x: 1 contributors (all time) y: 116 lines of code src/common/utils/AtomicSharedPtrTable.h x: 2 contributors (all time) y: 65 lines of code src/storage/chunk_engine/src/meta/rocksdb.rs x: 1 contributors (all time) y: 260 lines of code src/common/utils/Shuffle.h x: 1 contributors (all time) y: 157 lines of code src/client/storage/StorageClient.h x: 2 contributors (all time) y: 456 lines of code src/common/net/IOWorker.cc x: 1 contributors (all time) y: 112 lines of code configs/hf3fs_fuse_main.toml x: 1 contributors (all time) y: 393 lines of code src/fuse/FuseConfig.h x: 1 contributors (all time) y: 80 lines of code src/common/net/IfAddrs.h x: 2 contributors (all time) y: 112 lines of code src/fbs/storage/Common.h x: 2 contributors (all time) y: 665 lines of code src/storage/service/TargetMap.cc x: 1 contributors (all time) y: 370 lines of code configs/storage_main.toml x: 1 contributors (all time) y: 446 lines of code src/common/net/Listener.cc x: 3 contributors (all time) y: 205 lines of code src/common/net/Listener.h x: 1 contributors (all time) y: 52 lines of code src/common/serde/Serde.h x: 1 contributors (all time) y: 884 lines of code src/storage/chunk_engine/src/meta/meta_store.rs x: 1 contributors (all time) y: 729 lines of code src/lib/api/UsrbIo.cc x: 1 contributors (all time) y: 671 lines of code src/fuse/IoRing.h x: 1 contributors (all time) y: 239 lines of code src/fbs/meta/FileOperation.cc x: 1 contributors (all time) y: 306 lines of code src/storage/sync/ResyncWorker.cc x: 2 contributors (all time) y: 409 lines of code src/client/cli/admin/SetPreferredTargetOrder.cc x: 1 contributors (all time) y: 35 lines of code src/client/storage/StorageClientImpl.cc x: 2 contributors (all time) y: 2075 lines of code src/common/monitor/Recorder.cc x: 1 contributors (all time) y: 290 lines of code src/common/monitor/Recorder.h x: 1 contributors (all time) y: 345 lines of code src/storage/store/StorageTarget.cc x: 2 contributors (all time) y: 400 lines of code src/lib/rs/hf3fs-usrbio-sys/build.rs x: 2 contributors (all time) y: 17 lines of code src/storage/chunk_engine/src/utils/aligned.rs x: 1 contributors (all time) y: 4 lines of code benchmarks/fio_usrbio/hf3fs_usrbio.cpp x: 2 contributors (all time) y: 247 lines of code benchmarks/storage_bench/StorageBench.h x: 2 contributors (all time) y: 726 lines of code src/fuse/FuseOps.cc x: 2 contributors (all time) y: 2255 lines of code src/common/utils/SysResource.cc x: 1 contributors (all time) y: 188 lines of code src/client/meta/MetaClient.h x: 1 contributors (all time) y: 267 lines of code src/client/trash_cleaner/src/main.rs x: 1 contributors (all time) y: 624 lines of code src/storage/store/StorageTargets.cc x: 2 contributors (all time) y: 271 lines of code src/common/kv/mem/MemTransaction.h x: 1 contributors (all time) y: 336 lines of code src/fdb/FDBTransaction.cc x: 1 contributors (all time) y: 382 lines of code src/client/storage/UpdateChannelAllocator.cc x: 1 contributors (all time) y: 63 lines of code src/fuse/UserConfig.cc x: 1 contributors (all time) y: 144 lines of code src/common/utils/RobinHood.h x: 1 contributors (all time) y: 1796 lines of code src/common/app/ClientId.h x: 1 contributors (all time) y: 43 lines of code src/common/utils/Status.h x: 2 contributors (all time) y: 137 lines of code src/client/cli/admin/DumpChunkMeta.cc x: 1 contributors (all time) y: 209 lines of code src/client/cli/admin/DumpInodes.cc x: 1 contributors (all time) y: 280 lines of code src/common/utils/VersionInfo.h x: 1 contributors (all time) y: 19 lines of code src/storage/worker/CheckWorker.cc x: 1 contributors (all time) y: 252 lines of code src/common/utils/Linenoise.c x: 1 contributors (all time) y: 836 lines of code src/common/utils/UtcTimeSerde.h x: 1 contributors (all time) y: 10 lines of code src/storage/chunk_engine/src/alloc/allocator.rs x: 1 contributors (all time) y: 223 lines of code
2255.0
lines of code
  min: 4.0
  average: 336.92
  25th percentile: 108.75
  median: 196.5
  75th percentile: 393.0
  max: 2255.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 4.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".

About This Analysis
  • 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...