microsoft / DirectXMath
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 26 files with 34,382 lines of code.
    • 8 very long files (29,075 lines of code)
    • 3 long files (2,240 lines of code)
    • 8 medium size files (2,307 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (541 lines of code)
    • 4 very small files (219 lines of code)
84% | 6% | 6% | 1% | <1%
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
inl100% | 0% | 0% | 0% | 0%
cpp83% | 0% | 12% | 3% | 0%
h26% | 35% | 28% | 5% | 3%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Inc94% | 3% | 1% | 0% | 0%
SHMath86% | 0% | 12% | 0% | <1%
Extensions0% | 33% | 52% | 7% | 6%
XDSP0% | 100% | 0% | 0% | 0%
MatrixStack0% | 0% | 0% | 100% | 0%
Stereo3D0% | 0% | 0% | 85% | 14%
Longest Files (Top 26)
File# lines# units
inl
DirectXMathVector.inl
in Inc
11181 135
DirectXSH.cpp
in SHMath
3721 53
inl
DirectXPackedVector.inl
in Inc
3320 62
inl
DirectXCollision.inl
in Inc
2889 102
inl
DirectXMathMatrix.inl
in Inc
2795 18
inl
DirectXMathConvert.inl
in Inc
1787 27
inl
DirectXMathMisc.inl
in Inc
1725 48
DirectXMath.h
in Inc
1657 149
DirectXPackedVector.h
in Inc
867 83
DirectXMathAVX2.h
in Extensions
804 47
XDSP.h
in XDSP
569 16
DirectXMathF16C.h
in Extensions
366 7
DirectXMathFMA4.h
in Extensions
318 1
DirectXMathFMA3.h
in Extensions
300 1
DirectXMathSSE4.h
in Extensions
294 46
DirectXColors.h
in Inc
293 -
DirectXSHD3D11.cpp
in SHMath
282 2
DirectXSHD3D12.cpp
in SHMath
250 2
DirectXCollision.h
in Inc
204 4
DirectXMathAVX.h
in Extensions
186 40
DirectXMatrixStack.h
in MatrixStack
178 26
Stereo3DMatrixHelper.cpp
in Stereo3D
177 -
DirectXMathSSE3.h
in Extensions
80 6
DirectXMathBE.h
in Extensions
66 1
DirectXSH.h
in SHMath
42 -
Stereo3DMatrixHelper.h
in Stereo3D
31 -
Files With Most Units (Top 20)
File# lines# units
DirectXMath.h
in Inc
1657 149
inl
DirectXMathVector.inl
in Inc
11181 135
inl
DirectXCollision.inl
in Inc
2889 102
DirectXPackedVector.h
in Inc
867 83
inl
DirectXPackedVector.inl
in Inc
3320 62
DirectXSH.cpp
in SHMath
3721 53
inl
DirectXMathMisc.inl
in Inc
1725 48
DirectXMathAVX2.h
in Extensions
804 47
DirectXMathSSE4.h
in Extensions
294 46
DirectXMathAVX.h
in Extensions
186 40
inl
DirectXMathConvert.inl
in Inc
1787 27
DirectXMatrixStack.h
in MatrixStack
178 26
inl
DirectXMathMatrix.inl
in Inc
2795 18
XDSP.h
in XDSP
569 16
DirectXMathF16C.h
in Extensions
366 7
DirectXMathSSE3.h
in Extensions
80 6
DirectXCollision.h
in Inc
204 4
DirectXSHD3D11.cpp
in SHMath
282 2
DirectXSHD3D12.cpp
in SHMath
250 2
DirectXMathBE.h
in Extensions
66 1
Files With Long Lines (Top 14)

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

File# lines# units# long lines
DirectXSH.cpp
in SHMath
3721 53 426
DirectXMath.h
in Inc
1657 149 186
inl
DirectXMathVector.inl
in Inc
11181 135 87
inl
DirectXCollision.inl
in Inc
2889 102 42
inl
DirectXPackedVector.inl
in Inc
3320 62 37
DirectXCollision.h
in Inc
204 4 28
inl
DirectXMathMisc.inl
in Inc
1725 48 18
DirectXSH.h
in SHMath
42 - 18
DirectXPackedVector.h
in Inc
867 83 17
DirectXMathAVX.h
in Extensions
186 40 16
DirectXMathAVX2.h
in Extensions
804 47 16
Stereo3DMatrixHelper.cpp
in Stereo3D
177 - 5
XDSP.h
in XDSP
569 16 5
DirectXSHD3D12.cpp
in SHMath
250 2 2