From 03b86595cd1559611b35f85dbe7ada76cec346bc Mon Sep 17 00:00:00 2001 From: aliyevaa Date: Wed, 10 Apr 2024 09:38:13 -0700 Subject: [PATCH] Decrease the number of padding bytes in the Node Struct so it fits a lower quanta --- .../ModuleDependencyGraphParts/Node.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/Node.swift b/Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/Node.swift index 06f3ec1f6..2cec31e3d 100644 --- a/Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/Node.swift +++ b/Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/Node.swift @@ -38,6 +38,12 @@ extension ModuleDependencyGraph { /*@_spi(Testing)*/ public var key: DependencyKey { keyAndFingerprint.key } /*@_spi(Testing)*/ public var fingerprint: InternedString? { keyAndFingerprint.fingerprint } + /// When integrating a change, the driver finds untraced nodes so it can kick off jobs that have not been + /// kicked off yet. (Within any one driver invocation, compiling a source file is idempotent.) + /// When reading a serialized, prior graph, *don't* recover this state, since it will be a new driver + /// invocation that has not kicked off any compiles yet. + @_spi(Testing) public private(set) var isTraced: Bool = false + /// Each Node corresponds to a declaration, somewhere. If the definition has been already found, /// the `definitionLocation` will point to it. /// If uses are encountered before the definition (in reading swiftdeps files), the `definitionLocation` @@ -46,11 +52,6 @@ extension ModuleDependencyGraph { /// compilation. @_spi(Testing) public let definitionLocation: DefinitionLocation - /// When integrating a change, the driver finds untraced nodes so it can kick off jobs that have not been - /// kicked off yet. (Within any one driver invocation, compiling a source file is idempotent.) - /// When reading a serialized, prior graph, *don't* recover this state, since it will be a new driver - /// invocation that has not kicked off any compiles yet. - @_spi(Testing) public private(set) var isTraced: Bool = false private let cachedHash: Int