apple / swift-tools-support-async
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 53 files with 5,574 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (984 lines of code)
    • 4 medium size files (1,244 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (1,949 lines of code)
    • 34 very small files (1,397 lines of code)
0% | 17% | 22% | 34% | 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
swift0% | 18% | 22% | 35% | 23%
proto0% | 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/TSFCASFileTree0% | 39% | 21% | 24% | 14%
Sources/TSFCASFileTree/Generated0% | 0% | 100% | 0% | 0%
Sources/TSFCASFileTree/Internal0% | 0% | 48% | 51% | 0%
Sources/TSFFutures0% | 0% | 0% | 67% | 32%
Sources/TSFCAS/Implementations0% | 0% | 0% | 54% | 45%
Sources/TSFUtility0% | 0% | 0% | 57% | 42%
Sources/TSFCAS0% | 0% | 0% | 40% | 59%
Sources/TSFCASUtilities0% | 0% | 0% | 46% | 53%
Protos/CASFileTreeProtocol0% | 0% | 0% | 0% | 100%
Sources/TSFCAS/Generated0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Protos/CASProtocol0% | 0% | 0% | 0% | 100%
Sources/CBLAKE30% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
FileTreeImport.swift
in Sources/TSFCASFileTree
984 20
file_tree.pb.swift
in Sources/TSFCASFileTree/Generated/CASFileTreeProtocol
374 -
ConcurrentFilesystemScanner.swift
in Sources/TSFCASFileTree/Internal
337 2
FileTree.swift
in Sources/TSFCASFileTree
306 -
CASBlob.swift
in Sources/TSFCASFileTree
227 -
FilesystemObject.swift
in Sources/TSFCASFileTree
197 4
FileSegmenter.swift
in Sources/TSFCASFileTree/Internal
184 2
FileTreeParser.swift
in Sources/TSFCASFileTree/Internal
175 1
FutureDeduplicator.swift
in Sources/TSFFutures
168 -
FileTreeExport.swift
in Sources/TSFCASFileTree
156 2
ConcurrentFileTreeWalker.swift
in Sources/TSFCASFileTree
144 1
FileBackedCASDatabase.swift
in Sources/TSFCAS/Implementations
143 1
FutureFileSystem.swift
in Sources/TSFUtility
124 -
DataID.swift
in Sources/TSFCAS
118 2
OrderManager.swift
in Sources/TSFFutures
113 -
StreamReader.swift
in Sources/TSFCASUtilities
108 3
Canceller.swift
in Sources/TSFFutures
108 1
TSCCASFileSystem.swift
in Sources/TSFCASFileTree
106 -
CancellablePromise.swift
in Sources/TSFFutures
105 -
CASFSClient.swift
in Sources/TSFCASFileTree
87 -
proto
file_tree.proto
in Protos/CASFileTreeProtocol
83 -
FutureOperationQueue.swift
in Sources/TSFFutures
83 1
DeclFileTree.swift
in Sources/TSFCASFileTree
78 -
InMemoryCASDatabase.swift
in Sources/TSFCAS/Implementations
74 -
Package.swift
in root
72 -
Database.swift
in Sources/TSFCAS
71 13
LinkedListStream.swift
in Sources/TSFCASUtilities
64 2
BufferedStreamWriter.swift
in Sources/TSFCASUtilities
59 -
CASFSNode.swift
in Sources/TSFCASFileTree
57 -
Object.swift
in Sources/TSFCAS
55 4
BatchingFutureOperationQueue.swift
in Sources/TSFFutures
54 -
Futures.swift
in Sources/TSFFutures
53 1
DatabaseSpec.swift
in Sources/TSFCAS
50 -
FastData.swift
in Sources/TSFUtility
46 -
Blake3DataID.swift
in Sources/TSFCAS/Implementations
44 4
cas_object.pb.swift
in Sources/TSFCAS/Generated/CASProtocol
43 -
FileInfo.swift
in Sources/TSFCASFileTree
38 -
data_id.pb.swift
in Sources/TSFCAS/Generated/CASProtocol
36 -
Context.swift
in Sources/TSFCASFileTree
32 -
DirectoryEntry.swift
in Sources/TSFCASFileTree
26 -
ByteBuffer.swift
in Sources/TSFUtility
26 -
BinarySearch.swift
in Sources/TSFCASFileTree
25 -
CancellableFuture.swift
in Sources/TSFFutures
24 -
EventualResultsCache.swift
in Sources/TSFFutures
21 -
blake3.c
in Sources/CBLAKE3
18 -
Serializable.swift
in Sources/TSFUtility
18 1
proto
cas_object.proto
in Protos/CASProtocol
16 -
proto
data_id.proto
in Protos/CASProtocol
16 -
Errors.swift
in Sources/TSFCASFileTree
11 -
OperationQueue+Extensions.swift
in Sources/TSFFutures
8 -
Files With Most Units (Top 18)
File# lines# units
FileTreeImport.swift
in Sources/TSFCASFileTree
984 20
Database.swift
in Sources/TSFCAS
71 13
Blake3DataID.swift
in Sources/TSFCAS/Implementations
44 4
Object.swift
in Sources/TSFCAS
55 4
FilesystemObject.swift
in Sources/TSFCASFileTree
197 4
StreamReader.swift
in Sources/TSFCASUtilities
108 3
DataID.swift
in Sources/TSFCAS
118 2
FileTreeExport.swift
in Sources/TSFCASFileTree
156 2
ConcurrentFilesystemScanner.swift
in Sources/TSFCASFileTree/Internal
337 2
FileSegmenter.swift
in Sources/TSFCASFileTree/Internal
184 2
LinkedListStream.swift
in Sources/TSFCASUtilities
64 2
FileBackedCASDatabase.swift
in Sources/TSFCAS/Implementations
143 1
ConcurrentFileTreeWalker.swift
in Sources/TSFCASFileTree
144 1
FileTreeParser.swift
in Sources/TSFCASFileTree/Internal
175 1
Canceller.swift
in Sources/TSFFutures
108 1
FutureOperationQueue.swift
in Sources/TSFFutures
83 1
Futures.swift
in Sources/TSFFutures
53 1
Serializable.swift
in Sources/TSFUtility
18 1
Files With Long Lines (Top 20)

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

File# lines# units# long lines
FileTreeImport.swift
in Sources/TSFCASFileTree
984 20 31
FileTree.swift
in Sources/TSFCASFileTree
306 - 15
FileTreeParser.swift
in Sources/TSFCASFileTree/Internal
175 1 15
CASFSClient.swift
in Sources/TSFCASFileTree
87 - 8
FilesystemObject.swift
in Sources/TSFCASFileTree
197 4 6
CASBlob.swift
in Sources/TSFCASFileTree
227 - 5
ConcurrentFileTreeWalker.swift
in Sources/TSFCASFileTree
144 1 5
file_tree.pb.swift
in Sources/TSFCASFileTree/Generated/CASFileTreeProtocol
374 - 5
FileTreeExport.swift
in Sources/TSFCASFileTree
156 2 4
BatchingFutureOperationQueue.swift
in Sources/TSFFutures
54 - 4
FutureFileSystem.swift
in Sources/TSFUtility
124 - 3
Context.swift
in Sources/TSFCASFileTree
32 - 2
FileSegmenter.swift
in Sources/TSFCASFileTree/Internal
184 2 2
LinkedListStream.swift
in Sources/TSFCASUtilities
64 2 2
CancellablePromise.swift
in Sources/TSFFutures
105 - 2
FutureOperationQueue.swift
in Sources/TSFFutures
83 1 2
Database.swift
in Sources/TSFCAS
71 13 1
cas_object.pb.swift
in Sources/TSFCAS/Generated/CASProtocol
43 - 1
data_id.pb.swift
in Sources/TSFCAS/Generated/CASProtocol
36 - 1
InMemoryCASDatabase.swift
in Sources/TSFCAS/Implementations
74 - 1