Skip to content

Commit 8b730e9

Browse files
aliyevaaartemcm
authored andcommitted
Decrease the number of padding bytes in the Node Struct so it fits a lower quanta
1 parent 855f1f7 commit 8b730e9

File tree

1 file changed

+6
-5
lines changed
  • Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts

1 file changed

+6
-5
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/Node.swift

+6-5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ extension ModuleDependencyGraph {
3838
/*@_spi(Testing)*/ public var key: DependencyKey { keyAndFingerprint.key }
3939
/*@_spi(Testing)*/ public var fingerprint: InternedString? { keyAndFingerprint.fingerprint }
4040

41+
/// When integrating a change, the driver finds untraced nodes so it can kick off jobs that have not been
42+
/// kicked off yet. (Within any one driver invocation, compiling a source file is idempotent.)
43+
/// When reading a serialized, prior graph, *don't* recover this state, since it will be a new driver
44+
/// invocation that has not kicked off any compiles yet.
45+
@_spi(Testing) public private(set) var isTraced: Bool = false
46+
4147
/// Each Node corresponds to a declaration, somewhere. If the definition has been already found,
4248
/// the `definitionLocation` will point to it.
4349
/// If uses are encountered before the definition (in reading swiftdeps files), the `definitionLocation`
@@ -46,11 +52,6 @@ extension ModuleDependencyGraph {
4652
/// compilation.
4753

4854
@_spi(Testing) public let definitionLocation: DefinitionLocation
49-
/// When integrating a change, the driver finds untraced nodes so it can kick off jobs that have not been
50-
/// kicked off yet. (Within any one driver invocation, compiling a source file is idempotent.)
51-
/// When reading a serialized, prior graph, *don't* recover this state, since it will be a new driver
52-
/// invocation that has not kicked off any compiles yet.
53-
@_spi(Testing) public private(set) var isTraced: Bool = false
5455

5556
private let cachedHash: Int
5657

0 commit comments

Comments
 (0)