microsoft / snmalloc
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 83 files with 8,776 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (634 lines of code)
    • 10 medium size files (3,001 lines of codeclsfd_ftr_w_mp_ins)
    • 20 small files (2,930 lines of code)
    • 52 very small files (2,211 lines of code)
0% | 7% | 34% | 33% | 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
h0% | 7% | 33% | 33% | 25%
cc0% | 0% | 43% | 32% | 24%
cmake0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/mem0% | 17% | 48% | 21% | 11%
src/ds0% | 0% | 30% | 52% | 16%
src/backend0% | 0% | 24% | 49% | 25%
src/pal0% | 0% | 18% | 28% | 53%
src/override0% | 0% | 40% | 31% | 28%
src/aal0% | 0% | 0% | 32% | 67%
src0% | 0% | 0% | 0% | 100%
ci0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
corealloc.h
in src/mem
634 22
freelist.h
in src/mem
442 20
localalloc.h
in src/mem
406 23
allocstats.h
in src/mem
339 27
sizeclasstable.h
in src/mem
325 30
bits.h
in src/ds
271 21
ptrwrap.h
in src/ds
267 9
backend.h
in src/backend
252 5
chunkallocator.h
in src/mem
249 8
pal_posix.h
in src/pal
239 8
malloc.cc
in src/override
211 8
pagemap.h
in src/backend
191 9
address.h
in src/ds
190 13
address_space_core.h
in src/backend
188 7
dllist.h
in src/ds
173 1
helpers.h
in src/ds
171 7
aal.h
in src/aal
169 2
metaslab.h
in src/mem
169 1
memcpy.cc
in src/override
161 4
defines.h
in src/ds
151 2
aba.h
in src/ds
149 8
globalalloc.h
in src/mem
149 6
pal_windows.h
in src/pal
145 7
entropy.h
in src/mem
132 7
address_space.h
in src/backend
126 4
remotecache.h
in src/mem
115 5
pal_apple.h
in src/pal
114 3
pal.h
in src/pal
112 1
pool.h
in src/mem
111 6
seqset.h
in src/ds
108 4
threadalloc.h
in src/mem
106 9
pal_linux.h
in src/pal
100 3
pal_ds.h
in src/pal
98 6
remoteallocator.h
in src/mem
95 1
localcache.h
in src/mem
85 2
pal_freebsd_kernel.h
in src/pal
81 4
flaglock.h
in src/ds
80 9
pal_concept.h
in src/pal
77 -
aal_x86.h
in src/aal
74 7
mpmcstack.h
in src/ds
74 2
globalconfig.h
in src/backend
70 4
external_alloc.h
in src/mem
68 3
commonconfig.h
in src/backend
66 2
backend_concept.h
in src/backend
63 -
allocconfig.h
in src/mem
61 -
new.cc
in src/override
61 3
fixedglobalconfig.h
in src/backend
60 1
ticker.h
in src/mem
52 2
pal_noalloc.h
in src/pal
49 4
aal_cheri.h
in src/aal
48 1
Files With Most Units (Top 20)
File# lines# units
sizeclasstable.h
in src/mem
325 30
allocstats.h
in src/mem
339 27
localalloc.h
in src/mem
406 23
corealloc.h
in src/mem
634 22
bits.h
in src/ds
271 21
freelist.h
in src/mem
442 20
address.h
in src/ds
190 13
pagemap.h
in src/backend
191 9
flaglock.h
in src/ds
80 9
ptrwrap.h
in src/ds
267 9
threadalloc.h
in src/mem
106 9
aba.h
in src/ds
149 8
chunkallocator.h
in src/mem
249 8
malloc.cc
in src/override
211 8
pal_posix.h
in src/pal
239 8
aal_x86.h
in src/aal
74 7
address_space_core.h
in src/backend
188 7
helpers.h
in src/ds
171 7
entropy.h
in src/mem
132 7
pal_windows.h
in src/pal
145 7
Files With Long Lines (Top 1)

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

File# lines# units# long lines
cmake
Toolchain.cmake
in ci
14 - 1