apple / swift-distributed-actors
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 221 files with 33,044 lines of code.
    • 0 very long files (0 lines of code)
    • 16 long files (9,892 lines of code)
    • 33 medium size files (10,350 lines of codeclsfd_ftr_w_mp_ins)
    • 47 small files (6,743 lines of code)
    • 125 very small files (6,059 lines of code)
0% | 29% | 31% | 20% | 18%
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% | 30% | 32% | 20% | 16%
tla0% | 0% | 0% | 100% | 0%
proto0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
h0% | 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/DistributedActors0% | 33% | 28% | 20% | 16%
Sources/DistributedActorsGenerator0% | 37% | 32% | 16% | 13%
Sources/SwiftBenchmarkTools0% | 63% | 0% | 35% | <1%
Sources/DistributedActorsTestKit0% | 0% | 94% | 0% | 5%
Sources/DistributedActorsBenchmarks0% | 0% | 26% | 37% | 35%
ROOT0% | 0% | 100% | 0% | 0%
Models0% | 0% | 0% | 100% | 0%
Sources/ActorSingletonPlugin0% | 0% | 0% | 39% | 60%
Sources/DistributedActorsConcurrencyHelpers0% | 0% | 0% | 100% | 0%
Protos/Cluster0% | 0% | 0% | 0% | 100%
Protos0% | 0% | 0% | 0% | 100%
Sources/CDistributedActorsMailbox0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Protos/Clocks0% | 0% | 0% | 0% | 100%
Plugins/DistributedActorsGeneratorPlugin0% | 0% | 0% | 0% | 100%
Protos/Serialization0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ClusterShell.swift
in Sources/DistributedActors/Cluster
833 14
SWIM.pb.swift
in Sources/DistributedActors/Cluster/SWIM/Protobuf
825 7
WireProtocol.pb.swift
in Sources/DistributedActors/Protobuf
715 23
TransportPipelines.swift
in Sources/DistributedActors/Cluster/Transport
688 26
_ActorShell.swift
in Sources/DistributedActors
679 7
Decls+GenActorRendering.swift
in Sources/DistributedActorsGenerator
657 15
ActorSystem.swift
in Sources/DistributedActors
614 8
OperationLogDistributedReceptionist.swift
in Sources/DistributedActors/Cluster/Reception
583 13
Behaviors.swift
in Sources/DistributedActors
582 17
_Mailbox.swift
in Sources/DistributedActors
555 25
_OperationLogClusterReceptionistBehavior.swift
in Sources/DistributedActors/Cluster/Reception
542 9
Serialization.swift
in Sources/DistributedActors/Serialization
538 10
DriverUtils.swift
in Sources/SwiftBenchmarkTools
536 24
Refs.swift
in Sources/DistributedActors
527 16
SystemMessages.pb.swift
in Sources/DistributedActors/Protobuf
510 5
Supervision.swift
in Sources/DistributedActors
508 10
VersionVector.pb.swift
in Sources/DistributedActors/Clocks/Protobuf
495 5
Membership.pb.swift
in Sources/DistributedActors/Cluster/Protobuf
473 4
ActorAddress.swift
in Sources/DistributedActors
461 5
TestProbes.swift
in Sources/DistributedActorsTestKit
460 1
SWIMActorShell.swift
in Sources/DistributedActors/Cluster/SWIM
449 12
ShouldMatchers.swift
in Sources/DistributedActorsTestKit
430 16
ClusterShellState.swift
in Sources/DistributedActors/Cluster
357 11
Receptionist.swift
in Sources/DistributedActors/Receptionist
357 24
Cluster+Membership.swift
in Sources/DistributedActors/Cluster
352 1
DistributedActorAnalysis.swift
in Sources/DistributedActorsGenerator
344 3
bench.pb.swift
in Sources/DistributedActorsBenchmarks/Protobuf
342 7
ClusteredActorSystemsXCTestCase.swift
in Sources/DistributedActorsTestKit/Cluster
337 -
ActorTestKit.swift
in Sources/DistributedActorsTestKit
332 4
Gossiper+Shell.swift
in Sources/DistributedActors/Gossip
312 1
ClusterEvents.pb.swift
in Sources/DistributedActors/Cluster/Protobuf
298 3
VersionVector.swift
in Sources/DistributedActors/Clocks
291 1
Time.swift
in Sources/DistributedActors
291 5
Adapters.swift
in Sources/DistributedActors
289 9
LogCapture.swift
in Sources/DistributedActorsTestKit
285 2
ActorShell+Children.swift
in Sources/DistributedActors
280 1
ActorLogging.swift
in Sources/DistributedActors
277 4
Cluster.pb.swift
in Sources/DistributedActors/Cluster/Protobuf
276 3
ActorInstrumentation+os_signpost.swift
in Sources/DistributedActors/Instrumentation/os_signpost
268 -
ActorAddress.pb.swift
in Sources/DistributedActors/Protobuf
251 2
ActorRefProvider.swift
in Sources/DistributedActors
244 14
DistributedReceptionist.swift
in Sources/DistributedActors/Receptionist
239 20
Heap.swift
in Sources/DistributedActors/Collections
230 10
Decls.swift
in Sources/DistributedActorsGenerator
226 4
ActorRef+Serialization.swift
in Sources/DistributedActors/Serialization
225 2
SWIM+Serialization.swift
in Sources/DistributedActors/Cluster/SWIM/Protobuf
224 -
LifecycleWatch.swift
in Sources/DistributedActors/LifecycleMonitoring
221 3
Package.swift
in root
219 -
TopLevelProtobufCoders.swift
in Sources/DistributedActors/Serialization
215 46
SystemMessages+Redelivery.swift
in Sources/DistributedActors/Cluster
200 16
Files With Most Units (Top 20)
File# lines# units
TopLevelBytesBlobCoders.swift
in Sources/DistributedActors/Serialization
187 46
TopLevelProtobufCoders.swift
in Sources/DistributedActors/Serialization
215 46
TransportPipelines.swift
in Sources/DistributedActors/Cluster/Transport
688 26
_Mailbox.swift
in Sources/DistributedActors
555 25
Receptionist.swift
in Sources/DistributedActors/Receptionist
357 24
DriverUtils.swift
in Sources/SwiftBenchmarkTools
536 24
WireProtocol.pb.swift
in Sources/DistributedActors/Protobuf
715 23
DistributedReceptionist.swift
in Sources/DistributedActors/Receptionist
239 20
Behaviors.swift
in Sources/DistributedActors
582 17
SystemMessages+Redelivery.swift
in Sources/DistributedActors/Cluster
200 16
Refs.swift
in Sources/DistributedActors
527 16
ShouldMatchers.swift
in Sources/DistributedActorsTestKit
430 16
GossipLogic.swift
in Sources/DistributedActors/Gossip
85 15
Scheduler.swift
in Sources/DistributedActors
86 15
Decls+GenActorRendering.swift
in Sources/DistributedActorsGenerator
657 15
ActorRefProvider.swift
in Sources/DistributedActors
244 14
ClusterShell.swift
in Sources/DistributedActors/Cluster
833 14
HandshakeStateMachine.swift
in Sources/DistributedActors/Cluster
162 13
Cluster+MembershipGossip.swift
in Sources/DistributedActors/Cluster/MembershipGossip
156 13
OperationLogDistributedReceptionist.swift
in Sources/DistributedActors/Cluster/Reception
583 13
Files With Long Lines (Top 20)

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

File# lines# units# long lines
ClusterShell.swift
in Sources/DistributedActors/Cluster
833 14 60
TopLevelProtobufCoders.swift
in Sources/DistributedActors/Serialization
215 46 36
Supervision.swift
in Sources/DistributedActors
508 10 36
TransportPipelines.swift
in Sources/DistributedActors/Cluster/Transport
688 26 35
TestProbes.swift
in Sources/DistributedActorsTestKit
460 1 35
TopLevelBytesBlobCoders.swift
in Sources/DistributedActors/Serialization
187 46 34
Behaviors.swift
in Sources/DistributedActors
582 17 30
_ActorShell.swift
in Sources/DistributedActors
679 7 29
Serialization.swift
in Sources/DistributedActors/Serialization
538 10 26
ActorSystem.swift
in Sources/DistributedActors
614 8 23
Decls+GenActorRendering.swift
in Sources/DistributedActorsGenerator
657 15 23
ShouldMatchers.swift
in Sources/DistributedActorsTestKit
430 16 22
_OperationLogClusterReceptionistBehavior.swift
in Sources/DistributedActors/Cluster/Reception
542 9 20
SWIMActorShell.swift
in Sources/DistributedActors/Cluster/SWIM
449 12 19
Refs.swift
in Sources/DistributedActors
527 16 19
ClusterShellState.swift
in Sources/DistributedActors/Cluster
357 11 18
SWIM.pb.swift
in Sources/DistributedActors/Cluster/SWIM/Protobuf
825 7 18
_Mailbox.swift
in Sources/DistributedActors
555 25 18
Adapters.swift
in Sources/DistributedActors
289 9 15
WireProtocol.pb.swift
in Sources/DistributedActors/Protobuf
715 23 15