apple / swift-system
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 29 files with 3,838 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (613 lines of code)
    • 5 medium size files (1,335 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,131 lines of code)
    • 16 very small files (759 lines of code)
0% | 15% | 34% | 29% | 19%
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
swift0% | 16% | 36% | 30% | 16%
cmake0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources/System0% | 37% | 41% | 0% | 20%
Sources/System/Internals0% | 0% | 44% | 31% | 23%
Sources/System/FilePath0% | 0% | 24% | 74% | 1%
cmake/modules0% | 0% | 0% | 0% | 100%
Utilities0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Sources/CSystem/include0% | 0% | 0% | 0% | 100%
Sources/CSystem0% | 0% | 0% | 0% | 100%
Longest Files (Top 29)
File# lines# units
Errno.swift
in Sources/System
613 -
Constants.swift
in Sources/System/Internals
379 -
FilePathWindows.swift
in Sources/System/FilePath
281 13
SystemString.swift
in Sources/System
234 -
FileDescriptor.swift
in Sources/System
225 -
FileOperations.swift
in Sources/System
216 -
FilePathParsing.swift
in Sources/System/FilePath
190 -
FilePathSyntax.swift
in Sources/System/FilePath
187 -
FilePathComponents.swift
in Sources/System/FilePath
176 3
FilePathString.swift
in Sources/System/FilePath
154 -
FilePathComponentView.swift
in Sources/System/FilePath
151 -
Mocking.swift
in Sources/System/Internals
149 -
Exports.swift
in Sources/System/Internals
124 -
Syscalls.swift
in Sources/System/Internals
96 -
Util.swift
in Sources/System
93 1
FilePermissions.swift
in Sources/System
92 -
cmake
SwiftSupport.cmake
in cmake/modules
91 -
WindowsSyscallAdapters.swift
in Sources/System/Internals
78 -
FileHelpers.swift
in Sources/System
65 -
UtilConsumers.swift
in Sources/System
51 -
expand-availability.py
in Utilities
41 1
PlatformString.swift
in Sources/System
40 -
CInterop.swift
in Sources/System/Internals
31 -
Package.swift
in root
30 -
FilePath.swift
in Sources/System/FilePath
16 -
CSystemLinux.h
in Sources/CSystem/include
14 -
in
SwiftSystemConfig.cmake.in
in cmake/modules
9 -
CSystemWindows.h
in Sources/CSystem/include
6 -
shims.c
in Sources/CSystem
6 -
Files With Most Units (Top 4)
File# lines# units
FilePathWindows.swift
in Sources/System/FilePath
281 13
FilePathComponents.swift
in Sources/System/FilePath
176 3
Util.swift
in Sources/System
93 1
expand-availability.py
in Utilities
41 1
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