microsoft / OpenXR-MixedReality
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 194 files with 87,273 lines of code.
    • 22 very long files (61,852 lines of code)
    • 13 long files (8,278 lines of code)
    • 28 medium size files (8,626 lines of codeclsfd_ftr_w_mp_ins)
    • 26 small files (3,829 lines of code)
    • 105 very small files (4,688 lines of code)
70% | 9% | 9% | 4% | 5%
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
h64% | 14% | 9% | 5% | 6%
inl100% | 0% | 0% | 0% | 0%
cpp62% | 10% | 14% | 6% | 6%
vcxproj0% | 0% | 86% | 13% | 0%
hpp0% | 0% | 88% | 0% | 11%
hlsl0% | 0% | 0% | 48% | 51%
filters0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
shared/ext/DirectXMath85% | 6% | 5% | 2% | <1%
shared/ext99% | 0% | 0% | 0% | <1%
shared/ext/rapidjson46% | 22% | 12% | 10% | 7%
shared/ext/fmt62% | 17% | 18% | 0% | 1%
openxr_preview/include/openxr88% | 10% | 0% | 0% | 1%
shared/SampleShared/DirectXTK49% | 29% | 0% | 11% | 8%
shared/XrSceneLib0% | 22% | 10% | 23% | 43%
shared/gltf0% | 40% | 51% | 0% | 8%
shared/pbr0% | 0% | 66% | 9% | 24%
shared/SampleShared0% | 0% | 42% | 23% | 33%
shared/XrUtility0% | 0% | 44% | 20% | 34%
shared/pbr/Shaders0% | 0% | 0% | 48% | 51%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
inl
DirectXMathVector.inl
in shared/ext/DirectXMath/Inc
11062 133
tiny_gltf.h
in shared/ext
5930 175
stb_image.h
in shared/ext
5552 154
DirectXSH.cpp
in shared/ext/DirectXMath/SHMath
3719 53
inl
DirectXPackedVector.inl
in shared/ext/DirectXMath/Inc
3304 62
d3dx12.h
in shared/ext
3105 249
inl
DirectXCollision.inl
in shared/ext/DirectXMath/Inc
2881 102
format.h
in shared/ext/fmt
2708 297
inl
DirectXMathMatrix.inl
in shared/ext/DirectXMath/Inc
2684 18
openxr.h
in openxr_preview/include/openxr
2664 -
openxr_reflection.h
in openxr_preview/include/openxr
2043 -
schema.h
in shared/ext/rapidjson
2042 140
inl
DirectXMathConvert.inl
in shared/ext/DirectXMath/Inc
1783 27
inl
DirectXMathMisc.inl
in shared/ext/DirectXMath/Inc
1672 46
DirectXMath.h
in shared/ext/DirectXMath/Inc
1651 153
reader.h
in shared/ext/rapidjson
1641 68
mikktspace.cpp
in shared/ext
1439 39
document.h
in shared/ext/rapidjson
1433 195
stb_image_write.h
in shared/ext
1168 42
DDSTextureLoader.cpp
in shared/SampleShared/DirectXTK
1151 11
format-inl.h
in shared/ext/fmt
1111 60
core.h
in shared/ext/fmt
1109 102
chrono.h
in shared/ext/fmt
877 106
DirectXPackedVector.h
in shared/ext/DirectXMath/Inc
851 83
pointer.h
in shared/ext/rapidjson
829 24
DirectXMathAVX2.h
in shared/ext/DirectXMath/Extensions
804 47
LoaderHelpers.h
in shared/SampleShared/DirectXTK
683 9
regex.h
in shared/ext/rapidjson/internal
584 26
XrApp.cpp
in shared/XrSceneLib
545 18
openxr_platform.h
in openxr_preview/include/openxr
536 -
GltfHelper.cpp
in shared/gltf
518 21
XDSP.h
in shared/ext/DirectXMath/XDSP
516 16
printf.h
in shared/ext/fmt
514 50
encodings.h
in shared/ext/rapidjson
513 51
writer.h
in shared/ext/rapidjson
508 47
color.h
in shared/ext/fmt
477 35
XrMath.h
in shared/XrUtility
475 51
compile.h
in shared/ext/fmt
475 49
vcxproj
pbr_uwp.vcxproj
in shared/pbr
416 -
vcxproj
SampleShared_uwp.vcxproj
in shared/SampleShared
402 -
vcxproj
pbr_win32.vcxproj
in shared/pbr
396 -
vcxproj
SampleShared_win32.vcxproj
in shared/SampleShared
371 -
DirectXMathF16C.h
in shared/ext/DirectXMath/Extensions
366 7
vcxproj
Gltf_uwp.vcxproj
in shared/gltf
337 -
vcxproj
Gltf_win32.vcxproj
in shared/gltf
320 -
DirectXMathFMA4.h
in shared/ext/DirectXMath/Extensions
318 1
rapidjson.h
in shared/ext/rapidjson
305 -
DirectXMathFMA3.h
in shared/ext/DirectXMath/Extensions
300 1
DirectXMathSSE4.h
in shared/ext/DirectXMath/Extensions
294 46
XrSceneUnderstanding.hpp
in shared/XrUtility
288 19
Files With Most Units (Top 20)
File# lines# units
format.h
in shared/ext/fmt
2708 297
d3dx12.h
in shared/ext
3105 249
document.h
in shared/ext/rapidjson
1433 195
tiny_gltf.h
in shared/ext
5930 175
stb_image.h
in shared/ext
5552 154
DirectXMath.h
in shared/ext/DirectXMath/Inc
1651 153
schema.h
in shared/ext/rapidjson
2042 140
inl
DirectXMathVector.inl
in shared/ext/DirectXMath/Inc
11062 133
chrono.h
in shared/ext/fmt
877 106
inl
DirectXCollision.inl
in shared/ext/DirectXMath/Inc
2881 102
core.h
in shared/ext/fmt
1109 102
DirectXPackedVector.h
in shared/ext/DirectXMath/Inc
851 83
reader.h
in shared/ext/rapidjson
1641 68
inl
DirectXPackedVector.inl
in shared/ext/DirectXMath/Inc
3304 62
format-inl.h
in shared/ext/fmt
1111 60
DirectXSH.cpp
in shared/ext/DirectXMath/SHMath
3719 53
XrMath.h
in shared/XrUtility
475 51
encodings.h
in shared/ext/rapidjson
513 51
printf.h
in shared/ext/fmt
514 50
compile.h
in shared/ext/fmt
475 49
Files With Long Lines (Top 20)

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

File# lines# units# long lines
DirectXSH.cpp
in shared/ext/DirectXMath/SHMath
3719 53 426
DirectXMath.h
in shared/ext/DirectXMath/Inc
1651 153 183
openxr.h
in openxr_preview/include/openxr
2664 - 88
pointer.h
in shared/ext/rapidjson
829 24 78
stb_image_write.h
in shared/ext
1168 42 78
d3dx12.h
in shared/ext
3105 249 77
document.h
in shared/ext/rapidjson
1433 195 72
stb_image.h
in shared/ext
5552 154 59
inl
DirectXMathVector.inl
in shared/ext/DirectXMath/Inc
11062 133 49
reader.h
in shared/ext/rapidjson
1641 68 44
schema.h
in shared/ext/rapidjson
2042 140 44
inl
DirectXCollision.inl
in shared/ext/DirectXMath/Inc
2881 102 41
GltfHelper.cpp
in shared/gltf
518 21 41
inl
DirectXPackedVector.inl
in shared/ext/DirectXMath/Inc
3304 62 37
DirectXCollision.h
in shared/ext/DirectXMath/Inc
196 4 28
XrApp.cpp
in shared/XrSceneLib
545 18 26
mikktspace.cpp
in shared/ext
1439 39 24
openxr_platform.h
in openxr_preview/include/openxr
536 - 22
inl
DirectXMathMisc.inl
in shared/ext/DirectXMath/Inc
1672 46 18
DirectXSH.h
in shared/ext/DirectXMath/SHMath
42 - 18